aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-28 10:21:22 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-28 10:21:22 +0100
commit6593dff9f5b07c76037fa0afc7357089306195c4 (patch)
tree3956964e6f695ac881ca641e9ec9b9ffccc20156 /Zotlabs/Update
parent924c8db71206dca0baa1e95c63719205404d5380 (diff)
downloadvolse-hubzilla-6593dff9f5b07c76037fa0afc7357089306195c4.tar.gz
volse-hubzilla-6593dff9f5b07c76037fa0afc7357089306195c4.tar.bz2
volse-hubzilla-6593dff9f5b07c76037fa0afc7357089306195c4.zip
missed one index in the last update
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r--Zotlabs/Update/_1206.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1206.php b/Zotlabs/Update/_1206.php
new file mode 100644
index 000000000..bb2000aad
--- /dev/null
+++ b/Zotlabs/Update/_1206.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1206 {
+
+ function run() {
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = q("ALTER TABLE item
+ ADD INDEX uid_resource_type (uid, resource_type),
+ ");
+
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+ }
+ else {
+ return UPDATE_SUCCESS;
+ }
+
+ }
+
+}