aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-24 21:16:55 -0700
committerfriendica <info@friendica.com>2012-06-24 21:16:55 -0700
commitc464bc494c51bd871c2cf01a441ea2c4f8defc65 (patch)
tree14a4c5a83cab785f41ae465c308729ce7b551a56 /update.php
parent9528beac34389f8d8f20de1816bca8d516a556cc (diff)
downloadvolse-hubzilla-c464bc494c51bd871c2cf01a441ea2c4f8defc65.tar.gz
volse-hubzilla-c464bc494c51bd871c2cf01a441ea2c4f8defc65.tar.bz2
volse-hubzilla-c464bc494c51bd871c2cf01a441ea2c4f8defc65.zip
add like/dislike to profiles
Diffstat (limited to 'update.php')
-rw-r--r--update.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/update.php b/update.php
index 0f7bf664d..eeb8b07b1 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1149 );
+define( 'UPDATE_VERSION' , 1150 );
/**
*
@@ -1289,3 +1289,12 @@ function update_1148() {
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}
+
+
+function update_1149() {
+ $r1 = q("ALTER TABLE profile ADD likes text NOT NULL after prv_keywords");
+ $r2 = q("ALTER TABLE profile ADD dislikes text NOT NULL after likes");
+ if (! ($r1 && $r2))
+ return UPDATE_FAILED;
+ return UPDATE_SUCCESS;
+}