aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-26 09:58:42 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-26 09:58:42 +0100
commit51c0e5a988ce3bae025040ab7fa77852eaa3e70d (patch)
tree3c8e2f7924f12472cfaddcbaf7310b48fbecdb30 /Zotlabs
parent673cf8d35e224fcbbc0caef5e638c08bc3914feb (diff)
downloadvolse-hubzilla-51c0e5a988ce3bae025040ab7fa77852eaa3e70d.tar.gz
volse-hubzilla-51c0e5a988ce3bae025040ab7fa77852eaa3e70d.tar.bz2
volse-hubzilla-51c0e5a988ce3bae025040ab7fa77852eaa3e70d.zip
another DB upgrade to address some long running maintenance queries
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Update/_1205.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1205.php b/Zotlabs/Update/_1205.php
new file mode 100644
index 000000000..5384f183e
--- /dev/null
+++ b/Zotlabs/Update/_1205.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1205 {
+
+ function run() {
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = q("ALTER TABLE item
+ DROP INDEX item_private,
+ ADD INDEX uid_item_private (uid, item_private),
+ ADD INDEX item_wall (item_wall),
+ ADD INDEX item_pending_remove_changed (item_pending_remove, changed)
+ ");
+
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+ }
+ else {
+ return UPDATE_SUCCESS;
+ }
+
+ }
+
+}