aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql')
-rw-r--r--maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql b/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql
index 5f09f60d3a32..e9bbab8e9c9f 100644
--- a/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql
+++ b/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql
@@ -13,8 +13,8 @@ CREATE TABLE /*_*/templatelinks_tmp (
PRIMARY KEY (tl_from,tl_namespace,tl_title)
) /*$wgDBTableOptions*/;
-INSERT INTO /*_*/templatelinks_tmp
- SELECT * FROM /*_*/templatelinks;
+INSERT INTO /*_*/templatelinks_tmp (tl_from, tl_from_namespace, tl_namespace, tl_title)
+ SELECT tl_from, tl_from_namespace, tl_namespace, tl_title FROM /*_*/templatelinks;
DROP TABLE /*_*/templatelinks;