aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-15 14:05:18 -0800
committerfriendica <info@friendica.com>2015-01-15 14:05:18 -0800
commit1c9299ed4224d37716079be173d75319d2501b71 (patch)
tree27a72ac0d09bcb67bdea55a8d24f9fd7ea8f4b9d /install/update.php
parent56bc3bcdcee41d5ca6920c878aa8576dc673d039 (diff)
downloadvolse-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.php12
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