diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-02-28 10:21:22 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-02-28 10:21:55 +0100 |
commit | 551eea05ed802b79de29e6b488f691fb8887d0d5 (patch) | |
tree | d9a1214fe0589ce54a4437f5cf263892aee4cf89 /Zotlabs/Update/_1206.php | |
parent | 90c82e4394240750333358dfad95c3745d7ea6ef (diff) | |
download | volse-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.php | 24 |
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; + } + + } + +} |