diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-02 20:08:01 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-02 20:08:01 -0800 |
commit | 26e0fd624ab282149ad8c4274f0e0ddd32b929d1 (patch) | |
tree | e1c1e179a5bbd6584b3d0233b77483899e262c76 /Zotlabs | |
parent | 4c69c5679736bb77d141a528c1e63a80d11c8026 (diff) | |
parent | 2f0ebdeadeba17f15ae66170a6c867cfd489da36 (diff) | |
download | volse-hubzilla-26e0fd624ab282149ad8c4274f0e0ddd32b929d1.tar.gz volse-hubzilla-26e0fd624ab282149ad8c4274f0e0ddd32b929d1.tar.bz2 volse-hubzilla-26e0fd624ab282149ad8c4274f0e0ddd32b929d1.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Update/_1205.php | 11 | ||||
-rw-r--r-- | Zotlabs/Update/_1207.php | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1205.php b/Zotlabs/Update/_1205.php index 5384f183e..968833726 100644 --- a/Zotlabs/Update/_1205.php +++ b/Zotlabs/Update/_1205.php @@ -7,6 +7,17 @@ class _1205 { function run() { if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { + + q("ALTER TABLE item DROP INDEX title"); + q("ALTER TABLE item DROP INDEX body"); + q("ALTER TABLE item DROP INDEX allow_cid"); + q("ALTER TABLE item DROP INDEX allow_gid"); + q("ALTER TABLE item DROP INDEX deny_cid"); + q("ALTER TABLE item DROP INDEX deny_gid"); + q("ALTER TABLE item DROP INDEX item_flags"); + q("ALTER TABLE item DROP INDEX item_restrict"); + q("ALTER TABLE item DROP INDEX aid"); + $r = q("ALTER TABLE item DROP INDEX item_private, ADD INDEX uid_item_private (uid, item_private), diff --git a/Zotlabs/Update/_1207.php b/Zotlabs/Update/_1207.php new file mode 100644 index 000000000..f53bc46ae --- /dev/null +++ b/Zotlabs/Update/_1207.php @@ -0,0 +1,24 @@ +<?php + +namespace Zotlabs\Update; + +class _1207 { + + function run() { + + if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { + $r = q("ALTER TABLE item + DROP INDEX resource_type + "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + } + else { + return UPDATE_SUCCESS; + } + + } + +} |