aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-04 17:56:07 -0800
committerfriendica <info@friendica.com>2015-03-04 17:56:07 -0800
commit011ccd57f62335c915b5ac75e20c45a36a64a888 (patch)
treec79340ecdbe9dfc41fcb9d11798620f6b59c4fdb /install/update.php
parent410f3335a9e97276b3262196f50798ff56624af5 (diff)
downloadvolse-hubzilla-011ccd57f62335c915b5ac75e20c45a36a64a888.tar.gz
volse-hubzilla-011ccd57f62335c915b5ac75e20c45a36a64a888.tar.bz2
volse-hubzilla-011ccd57f62335c915b5ac75e20c45a36a64a888.zip
add queue priority
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 70ffb1ebf..75805513d 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1138 );
+define( 'UPDATE_VERSION' , 1139 );
/**
*
@@ -1580,3 +1580,12 @@ function update_r1137() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+
+function update_r1138() {
+ $r1 = q("alter table outq add outq_priority smallint not null default '0' ");
+ $r2 = q("create index outq_priority on outq ( outq_priority ) ");
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}