diff options
author | friendica <info@friendica.com> | 2015-01-15 14:05:18 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-15 14:05:18 -0800 |
commit | 1c9299ed4224d37716079be173d75319d2501b71 (patch) | |
tree | 27a72ac0d09bcb67bdea55a8d24f9fd7ea8f4b9d /install/update.php | |
parent | 56bc3bcdcee41d5ca6920c878aa8576dc673d039 (diff) | |
download | volse-hubzilla-1c9299ed4224d37716079be173d75319d2501b71.tar.gz volse-hubzilla-1c9299ed4224d37716079be173d75319d2501b71.tar.bz2 volse-hubzilla-1c9299ed4224d37716079be173d75319d2501b71.zip |
more backend work on poco rating
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index d6953cdbc..f7ccb8210 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1131 ); +define( 'UPDATE_VERSION' , 1132 ); /** * @@ -1483,4 +1483,14 @@ function update_r1130() { ); return UPDATE_SUCCESS; +} + +function update_r1131() { + $r1 = q("ALTER TABLE `abook` ADD `abook_rating_text` TEXT NOT NULL DEFAULT '' AFTER `abook_rating` "); + $r2 = q("ALTER TABLE `xlink` ADD `xlink_rating_text` TEXT NOT NULL DEFAULT '' AFTER `xlink_rating` "); + + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + }
\ No newline at end of file |