aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-08-01 00:57:15 +0200
committerMario Vavti <mario@mariovavti.com>2017-08-01 00:57:15 +0200
commitb66cd8363e19a05853876dd3146dd64bb7e683d2 (patch)
treea5d758fed1d7c8b9b8a7254563250578155811d7 /install/update.php
parent376b05bcc9bbe6848c5693cd53201c0e8c8415ee (diff)
parent9ec995dbf072eb3143cae2b11a89522577a005ff (diff)
downloadvolse-hubzilla-b66cd8363e19a05853876dd3146dd64bb7e683d2.tar.gz
volse-hubzilla-b66cd8363e19a05853876dd3146dd64bb7e683d2.tar.bz2
volse-hubzilla-b66cd8363e19a05853876dd3146dd64bb7e683d2.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
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;
}