aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1206.php
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:55 +0100
commit551eea05ed802b79de29e6b488f691fb8887d0d5 (patch)
treed9a1214fe0589ce54a4437f5cf263892aee4cf89 /Zotlabs/Update/_1206.php
parent90c82e4394240750333358dfad95c3745d7ea6ef (diff)
downloadvolse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.tar.gz
volse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.tar.bz2
volse-hubzilla-551eea05ed802b79de29e6b488f691fb8887d0d5.zip
missed one index in the last update
Diffstat (limited to 'Zotlabs/Update/_1206.php')
-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;
+ }
+
+ }
+
+}