wiki.techinc.nl/maintenance/sqlite/archives/patch-querycache_info-fix-pk.sql
Reedy 634024b030 Fixup some SELECT * usages in sqlite schema patches
Bug: T252311
Change-Id: I7abdb7db89873c20f3a79df9452ab45c59ca6395
2020-05-10 02:21:37 +01:00

15 lines
500 B
SQL

CREATE TABLE /*_*/querycache_info_tmp (
-- Special page name
-- Corresponds to a qc_type value
qci_type varbinary(32) NOT NULL default '' PRIMARY KEY,
-- Timestamp of last update
qci_timestamp binary(14) NOT NULL default '19700101000000'
) /*$wgDBTableOptions*/;
INSERT INTO /*_*/querycache_info_tmp(qci_type, qci_timestamp)
SELECT qci_type, qci_timestamp FROM /*_*/querycache_info;
DROP TABLE /*_*/querycache_info;
ALTER TABLE /*_*/querycache_info_tmp RENAME TO /*_*/querycache_info;