Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Updates to files. (http://www.mysidiaadoptables.com/forum/showthread.php?t=1726)

PTGigi 01-18-2011 05:50 PM

Quote:

Originally Posted by Hall of Famer (Post 12696)
Database Structure Change:
New tables:
PHP Code:

$query "CREATE TABLE ".$prefix."shoutbox (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user varchar(50), date varchar(30), comment varchar(2500))";
mysql_query($query);

$query "CREATE TABLE ".$prefix."trades (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, userrequestingtrade varchar(50), tradetype varchar(20), adoptableoffered INT, cashoffered INT, adoptabledesired INT, custommessage varchar(150), offerstatus varchar(30), tradeto varchar(40))";
mysql_query($query);

$query "CREATE TABLE ".$prefix."cash_logs (to varchar(40), from varchar(40), type varchar(40), amount int(10), date varchar(25))";
mysql_query($query); 

Also add the column 'gender'(VARCHAR) in table 'owned_adoptables', and 'dollar'(INT) in table 'user'
After this is done, insert the following three rows in the table 'settings':
PHP Code:

$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('enabletrades', 'yes')";
mysql_query($query);

$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('tradecost', '0')";
mysql_query($query);

$query "INSERT INTO ".$prefix."settings (name, value) VALUES ('tradeoffercost', '0')";
mysql_query($query); 




Oh thank you! :usedusedused: I've been looking for that :BIGO:

Hall of Famer 01-18-2011 05:58 PM

Oh you do? Actually you can pretty much upgrade from RA v1.0.0 by yourself. XD I know you are a coder good enough to follow these steps in each modification. ^^

Just keep in mind that Bokkun's abandon script actually clones an adoptable whenever a user abandons his/hers. I fixed his script myself in Mys/RA v1.1.0, just a reminder for you if you are upgrading your site manually.


All times are GMT -5. The time now is 02:32 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.