diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:19:08 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-26 19:48:15 -0500 |
commit | 1035c453ea6468de13db8eb04fbb55d38347ff2a (patch) | |
tree | 6334368706467665fa7a5f5d75efd1dce886620e /Zotlabs/Update | |
parent | 45e0fc6802b360710becf7ddaf6aed6a9de1d876 (diff) | |
parent | fe7fba4789fac2024c4e8e711e2f8a2492c683bd (diff) | |
download | volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.tar.gz volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.tar.bz2 volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r-- | Zotlabs/Update/_1205.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1205.php b/Zotlabs/Update/_1205.php new file mode 100644 index 000000000..5384f183e --- /dev/null +++ b/Zotlabs/Update/_1205.php @@ -0,0 +1,27 @@ +<?php + +namespace Zotlabs\Update; + +class _1205 { + + function run() { + + if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { + $r = q("ALTER TABLE item + DROP INDEX item_private, + ADD INDEX uid_item_private (uid, item_private), + ADD INDEX item_wall (item_wall), + ADD INDEX item_pending_remove_changed (item_pending_remove, changed) + "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + } + else { + return UPDATE_SUCCESS; + } + + } + +} |