diff options
Diffstat (limited to 'db/08to09.sql')
-rw-r--r-- | db/08to09.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/08to09.sql b/db/08to09.sql index a0e37f0f1..1d37a759d 100644 --- a/db/08to09.sql +++ b/db/08to09.sql @@ -42,3 +42,12 @@ create table login_token ( constraint primary key (user_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; +alter table fave + drop index fave_user_id_idx, + add index fave_user_id_idx (user_id,modified); + +alter table subscription + drop index subscription_subscriber_idx, + add index subscription_subscriber_idx (subscriber,created), + drop index subscription_subscribed_idx, + add index subscription_subscribed_idx (subscribed,created); |