prepare to implement database update

This commit is contained in:
Zach Prezkuta 2012-06-01 09:07:51 -06:00
parent c0af6dbb1a
commit b000088ded

View file

@ -1274,5 +1274,15 @@ function update_1146() {
return UPDATE_SUCCESS ; return UPDATE_SUCCESS ;
} }
//ALTER TABLE `sign` MODIFY column int Default '10'; /*
function update_xxxx() {
$r1 = q("ALTER TABLE `sign` MODIFY `iid` SET DEFAULT '0'");
$r2 = q("ALTER TABLE `sign` ADD `retract_iid` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `iid`");
$r3 = q("ALTER TABLE `sign` ADD INDEX ( `retract_iid` )");
if((! $r1) || (! $r2) || (! $r3))
return UPDATE_FAILED ;
return UPDATE_SUCCESS ;
}
*/
// dump DB schema: mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql