aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-03 17:17:20 -0700
committerzotlabs <mike@macgirvin.com>2017-09-03 17:17:20 -0700
commit4adf2caaa687287cf82b930bb5a0c07d39c7afc0 (patch)
tree670ce1e8c82b813ce86b6c8815e66ea6ea3a5adb /install/update.php
parentdb82d303e217c2ca599a8b740ebb62339d373124 (diff)
parent0fac35686b28825da69c77f9a903e4e24a7036fa (diff)
downloadvolse-hubzilla-4adf2caaa687287cf82b930bb5a0c07d39c7afc0.tar.gz
volse-hubzilla-4adf2caaa687287cf82b930bb5a0c07d39c7afc0.tar.bz2
volse-hubzilla-4adf2caaa687287cf82b930bb5a0c07d39c7afc0.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 8798a3d69..b99e4dd9d 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1193 );
+define( 'UPDATE_VERSION' , 1194 );
/**
*
@@ -2978,3 +2978,17 @@ function update_r1192() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1193() {
+
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r1 = q("CREATE INDEX item_uid_unseen ON item (uid, item_unseen)");
+ }
+ else {
+ $r1 = q("ALTER TABLE item ADD INDEX uid_item_unseen (uid, item_unseen);");
+ }
+
+ if($r1)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}