summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-filearchive-user-index.sql
blob: 0d8c3ab15e1977dc1703270ca07fc85513d2fcbc (plain)
1
2
3
4
5
-- Adding index to sort by uploader
ALTER TABLE /*$wgDBprefix*/filearchive
  ADD INDEX fa_user_timestamp (fa_user_text,fa_timestamp),
  -- Remove useless, incomplete index
  DROP INDEX fa_deleted_user;