aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-20 22:14:51 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-20 22:14:51 -0700
commit43fbbfe0dff1f2a51c0d6911a78bf8a3724dc752 (patch)
treeea0d596c1c970c234d75c30a250a92ce86b66493 /install/update.php
parent3e7a76cc6418b8ef589ec9de725821743a156484 (diff)
parent72bdca009c076023342c190c5e3dde6725cd9635 (diff)
downloadvolse-hubzilla-43fbbfe0dff1f2a51c0d6911a78bf8a3724dc752.tar.gz
volse-hubzilla-43fbbfe0dff1f2a51c0d6911a78bf8a3724dc752.tar.bz2
volse-hubzilla-43fbbfe0dff1f2a51c0d6911a78bf8a3724dc752.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
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;
+}