summaryrefslogtreecommitdiff
path: root/maintenance/archives
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/archives')
-rw-r--r--maintenance/archives/patch-il_from_namespace.sql2
-rw-r--r--maintenance/archives/patch-pl_from_namespace.sql2
-rw-r--r--maintenance/archives/patch-tl_from_namespace.sql2
3 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/archives/patch-il_from_namespace.sql b/maintenance/archives/patch-il_from_namespace.sql
index 4c858f44..2a2d361b 100644
--- a/maintenance/archives/patch-il_from_namespace.sql
+++ b/maintenance/archives/patch-il_from_namespace.sql
@@ -1,4 +1,4 @@
ALTER TABLE /*_*/imagelinks
ADD COLUMN il_from_namespace int NOT NULL default 0;
-CREATE INDEX /*i*/il_backlinks_namespace ON /*_*/imagelinks (il_to,il_from_namespace,il_from); \ No newline at end of file
+CREATE INDEX /*i*/il_backlinks_namespace ON /*_*/imagelinks (il_from_namespace,il_to,il_from); \ No newline at end of file
diff --git a/maintenance/archives/patch-pl_from_namespace.sql b/maintenance/archives/patch-pl_from_namespace.sql
index 2f7ff046..dcf2b60a 100644
--- a/maintenance/archives/patch-pl_from_namespace.sql
+++ b/maintenance/archives/patch-pl_from_namespace.sql
@@ -1,4 +1,4 @@
ALTER TABLE /*_*/pagelinks
ADD COLUMN pl_from_namespace int NOT NULL default 0;
-CREATE INDEX /*i*/pl_backlinks_namespace ON /*_*/pagelinks (pl_namespace,pl_title,pl_from_namespace,pl_from);
+CREATE INDEX /*i*/pl_backlinks_namespace ON /*_*/pagelinks (pl_from_namespace,pl_namespace,pl_title,pl_from);
diff --git a/maintenance/archives/patch-tl_from_namespace.sql b/maintenance/archives/patch-tl_from_namespace.sql
index 8d6c76b8..edfb7a52 100644
--- a/maintenance/archives/patch-tl_from_namespace.sql
+++ b/maintenance/archives/patch-tl_from_namespace.sql
@@ -1,4 +1,4 @@
ALTER TABLE /*_*/templatelinks
ADD COLUMN tl_from_namespace int NOT NULL default 0;
-CREATE INDEX /*i*/tl_backlinks_namespace ON /*_*/templatelinks (tl_namespace,tl_title,tl_from_namespace,tl_from);
+CREATE INDEX /*i*/tl_backlinks_namespace ON /*_*/templatelinks (tl_from_namespace,tl_namespace,tl_title,tl_from);