aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-30 12:21:36 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-30 12:21:36 +0200
commite07ff7d3fbb9bef720831dc71470b70a882abfdf (patch)
tree68934f0deb2fb9edef69954d1016734bc8662957 /install/update.php
parentb22fa9f7f4b77569c29b0fc881373393281b7bf4 (diff)
parente769fbaffb09aa673d7475c598e7df7e7978d210 (diff)
downloadvolse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.tar.gz
volse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.tar.bz2
volse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.zip
Merge remote-tracking branch 'upstream/master'
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 9f4457600..ace5239b5 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1155 );
+define( 'UPDATE_VERSION' , 1156 );
/**
*
@@ -1875,3 +1875,13 @@ function update_r1154() {
}
+
+function update_r1155() {
+
+ $r1 = q("alter table site add site_type smallint not null default '0' ");
+ $r2 = q("create index site_type on site ( site_type ) ");
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+