diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-04 15:53:56 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-04 15:53:56 -0800 |
commit | 6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f (patch) | |
tree | c4848db3163817af1ba059ad23070028bcc56b41 /install/update.php | |
parent | 3e7dffb6765f1d3120fd8fb58bb38c70c9dddcd6 (diff) | |
parent | 9d55a254dcd39e2a77a1c24625adba69d16acb7a (diff) | |
download | volse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.tar.gz volse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.tar.bz2 volse-hubzilla-6ad14f4ca009bfa14aa0629d6a53212eb0d14e7f.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index f7b9b03ed..ceaccdfa3 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1198 ); +define( 'UPDATE_VERSION' , 1200 ); /** * @@ -3070,3 +3070,32 @@ function update_r1197() { return UPDATE_SUCCESS; } + +function update_r1198() { + + if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { + $r = q("ALTER TABLE item + DROP INDEX item_blocked, + DROP INDEX item_unpublished, + DROP INDEX item_deleted, + DROP INDEX item_delayed, + DROP INDEX item_hidden, + DROP INDEX item_pending_remove, + DROP INDEX item_type + "); + } + + return UPDATE_SUCCESS; +} + +function update_r1199() { + + if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { + $r = q("ALTER TABLE item + DROP INDEX uid, + ADD INDEX (item_type) + "); + } + + return UPDATE_SUCCESS; +} |