From: Zach Prezkuta Date: Fri, 1 Jun 2012 15:07:51 +0000 (-0600) Subject: prepare to implement database update X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b000088ded0d0f677114da0af1c5ea6436a97560;p=friendica.git prepare to implement database update --- diff --git a/update.php b/update.php index e1a554533c..9d534a127a 100644 --- a/update.php +++ b/update.php @@ -1274,5 +1274,15 @@ function update_1146() { 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