aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-08-23 15:54:46 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-08-23 15:54:46 +0200
commit092e7378cdaeefaa7b4a954bd865bba1960f01aa (patch)
tree43a01ef991aae0e394d6c0645f84cbc7b856f972 /install/update.php
parente50e68719155c7d35e30bb203a403854f789d5a1 (diff)
parent2a59392ba8be974a5deec2e6f15959fde21186ea (diff)
downloadvolse-hubzilla-092e7378cdaeefaa7b4a954bd865bba1960f01aa.tar.gz
volse-hubzilla-092e7378cdaeefaa7b4a954bd865bba1960f01aa.tar.bz2
volse-hubzilla-092e7378cdaeefaa7b4a954bd865bba1960f01aa.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 3ca22c8c5..9aca14d2e 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1147 );
+define( 'UPDATE_VERSION' , 1148 );
/**
*
@@ -1720,3 +1720,11 @@ function update_r1146() {
return UPDATE_FAILED;
}
+function update_r1147() {
+
+ $r1 = q("alter table event add event_priority smallint not null default '0' ");
+ $r2 = q("create index event_priority on event ( event_priority ) ");
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}