diff options
author | friendica <info@friendica.com> | 2012-06-03 14:48:28 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-03 14:48:28 -0700 |
commit | 9f4b89726176f9596cf3330a68cfab8cab5ab361 (patch) | |
tree | 688f64270521b0c47eaacae020e2ba92274fddeb /update.php | |
parent | 0b657aa2357bf8785302b55e2cafb397d67cb377 (diff) | |
parent | a66baf29188248fd83ccdf7053a0cf589a9fa8af (diff) | |
download | volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.tar.gz volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.tar.bz2 volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.zip |
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/update.php b/update.php index 1b2098e6e..35a6771b0 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1147 ); +define( 'UPDATE_VERSION' , 1148 ); /** * @@ -1137,8 +1137,8 @@ INDEX ( `username` ) } function update_1133() { -q("ALTER TABLE `user` ADD `unkmail` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `blocktags` , ADD INDEX ( `unkmail` ) ");
-q("ALTER TABLE `user` ADD `cntunkmail` INT NOT NULL DEFAULT '10' AFTER `unkmail` , ADD INDEX ( `cntunkmail` ) ");
+q("ALTER TABLE `user` ADD `unkmail` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `blocktags` , ADD INDEX ( `unkmail` ) "); +q("ALTER TABLE `user` ADD `cntunkmail` INT NOT NULL DEFAULT '10' AFTER `unkmail` , ADD INDEX ( `cntunkmail` ) "); q("ALTER TABLE `mail` ADD `unknown` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `replied` , ADD INDEX ( `unknown` ) "); } @@ -1274,4 +1274,12 @@ function update_1146() { return UPDATE_SUCCESS ; } +function update_1147() { + $r1 = q("ALTER TABLE `sign` ALTER `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 ; +} |