Fixed SQLite updater broken by r69542

This commit is contained in:
Max Semenik 2010-08-15 14:49:07 +00:00
parent fe6cffe907
commit 0ce11ce403

View file

@ -0,0 +1,17 @@
--
-- Add iw_api and iw_wikiid to interwiki table
--
CREATE TABLE /*_*/interwiki_tmp (
iw_prefix TEXT NOT NULL,
iw_url BLOB NOT NULL,
iw_api BLOB NOT NULL,
iw_wikiid TEXT NOT NULL,
iw_local INTEGER NOT NULL,
iw_trans INTEGER NOT NULL default 0
) /*$wgDBTableOptions*/;
INSERT INTO /*_*/interwiki_tmp SELECT iw_prefix, iw_url, '', '', iw_local, iw_trans FROM /*_*/interwiki;
DROP TABLE /*_*/interwiki;
ALTER TABLE /*_*/interwiki_tmp RENAME TO /*_*/interwiki;