diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-28 20:47:14 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-28 20:47:14 -0500 |
commit | 39fe80a196ee626dda15b5b844dd1d05893f7646 (patch) | |
tree | 1c66efd9cb61c2f18c0d98d57b1589de6164101e /Zotlabs/Update | |
parent | 1035c453ea6468de13db8eb04fbb55d38347ff2a (diff) | |
parent | 029d155a07e4d2a0af82a19d3234cee50b57a085 (diff) | |
download | volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.gz volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.bz2 volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'Zotlabs/Update')
-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..351d53ff6 --- /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; + } + + } + +} |