aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-31 17:23:33 -0700
committerzotlabs <mike@macgirvin.com>2017-07-31 17:23:33 -0700
commit9476c631b0f9ba52be869b0c430fea81f4202352 (patch)
tree74bc7e214224bddf16ddc75f42ccb1a7e08da2ec /install/update.php
parent445fa6825a20876441d07c28f7b7bbd2c8fd064c (diff)
parentb66cd8363e19a05853876dd3146dd64bb7e683d2 (diff)
downloadvolse-hubzilla-9476c631b0f9ba52be869b0c430fea81f4202352.tar.gz
volse-hubzilla-9476c631b0f9ba52be869b0c430fea81f4202352.tar.bz2
volse-hubzilla-9476c631b0f9ba52be869b0c430fea81f4202352.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index ac560f4db..8798a3d69 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1192 );
+define( 'UPDATE_VERSION' , 1193 );
/**
*
@@ -2963,6 +2963,18 @@ function update_r1191() {
return UPDATE_FAILED;
}
}
+}
+function update_r1192() {
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r1 = q("CREATE INDEX item_obj_type ON item (obj_type)");
+ }
+ else {
+ $r1 = q("ALTER TABLE item ADD INDEX (obj_type)");
+ }
+
+ if($r1)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
}