X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fsqlite%2Farchives%2Fpatch-templatelinks-fix-pk.sql;h=e9bbab8e9c9f092c939f6617a20ddb66ad7a78c6;hp=5f09f60d3a32df250fa6983c32a03993321ff8e2;hb=c99e9beff7d7c1a5a48f8d6f869a42425021c62b;hpb=ab3cc3805f036df5a5e175cde5644cfa760a78e6 diff --git a/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql b/maintenance/sqlite/archives/patch-templatelinks-fix-pk.sql index 5f09f60d3a..e9bbab8e9c 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;