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