aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-08 09:47:49 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-08 09:47:49 +0100
commit661c20e452255754bbccadc3b29dc3c598c07ed0 (patch)
tree922d36ab94f6d472a67a749c7bfd949231404f9b /install/update.php
parentb512780e37deb0b9a422ae8b1604e9c3454694a9 (diff)
downloadvolse-hubzilla-661c20e452255754bbccadc3b29dc3c598c07ed0.tar.gz
volse-hubzilla-661c20e452255754bbccadc3b29dc3c598c07ed0.tar.bz2
volse-hubzilla-661c20e452255754bbccadc3b29dc3c598c07ed0.zip
more db and queries finetuning
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 ceaccdfa3..d5ad394f4 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1200 );
+define( 'UPDATE_VERSION' , 1201 );
/**
*
@@ -3099,3 +3099,17 @@ function update_r1199() {
return UPDATE_SUCCESS;
}
+
+function update_r1200() {
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = q("ALTER TABLE item
+ DROP INDEX item_type,
+ ADD INDEX uid_item_type (uid, item_type)
+ ");
+ }
+
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}