aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-04 22:37:30 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-04 22:37:30 +0100
commit9d55a254dcd39e2a77a1c24625adba69d16acb7a (patch)
tree89c9d026a168139fe81a7bdf2479a7c68db06fdf /install/update.php
parentf9aecf5d4c8304acb51d05be5bf2fd4bb70f790f (diff)
downloadvolse-hubzilla-9d55a254dcd39e2a77a1c24625adba69d16acb7a.tar.gz
volse-hubzilla-9d55a254dcd39e2a77a1c24625adba69d16acb7a.tar.bz2
volse-hubzilla-9d55a254dcd39e2a77a1c24625adba69d16acb7a.zip
this will fix the cards query and keep the rest intact
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 1bb39fc65..ceaccdfa3 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1199 );
+define( 'UPDATE_VERSION' , 1200 );
/**
*
@@ -3087,3 +3087,15 @@ function update_r1198() {
return UPDATE_SUCCESS;
}
+
+function update_r1199() {
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = q("ALTER TABLE item
+ DROP INDEX uid,
+ ADD INDEX (item_type)
+ ");
+ }
+
+ return UPDATE_SUCCESS;
+}