summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-filearchive-user-index.sql
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/archives/patch-filearchive-user-index.sql')
-rw-r--r--maintenance/archives/patch-filearchive-user-index.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/maintenance/archives/patch-filearchive-user-index.sql b/maintenance/archives/patch-filearchive-user-index.sql
new file mode 100644
index 00000000..c79000ad
--- /dev/null
+++ b/maintenance/archives/patch-filearchive-user-index.sql
@@ -0,0 +1,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;