aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-06 17:00:25 -0700
committerfriendica <info@friendica.com>2014-08-06 17:00:25 -0700
commit70449755202327bd6ac06cbbae04ba6098f43a1e (patch)
tree5d37b7a6395b882ea9a5440dd86707d37ababc5e /install/update.php
parent0903d57311dd02f1029cc879da71b3c4bb0e58cb (diff)
downloadvolse-hubzilla-70449755202327bd6ac06cbbae04ba6098f43a1e.tar.gz
volse-hubzilla-70449755202327bd6ac06cbbae04ba6098f43a1e.tar.bz2
volse-hubzilla-70449755202327bd6ac06cbbae04ba6098f43a1e.zip
item table upgrade for storing post visibility
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 9ce452275..135aba674 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1120 );
+define( 'UPDATE_VERSION' , 1121 );
/**
*
@@ -1351,3 +1351,12 @@ function update_r1119() {
return UPDATE_FAILED;
}
+function update_r1120() {
+ $r = q("ALTER TABLE `item` ADD `public_policy` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `coord` ,
+ADD INDEX ( `public_policy` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+
+