| 1 |
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php. |
| 2 |
-- Source: abstractSchemaChanges/patch-linter-add-namespace.json |
| 3 |
-- Do not modify this file directly. |
| 4 |
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes |
| 5 |
DROP INDEX linter_page; |
| 6 |
DROP INDEX linter_cat_page_position; |
| 7 |
CREATE TEMPORARY TABLE /*_*/__temp__linter AS |
| 8 |
SELECT linter_id, linter_page, linter_cat, linter_start, linter_end, linter_params |
| 9 |
FROM /*_*/linter; |
| 10 |
DROP TABLE /*_*/linter; |
| 11 |
CREATE TABLE /*_*/linter ( linter_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, linter_page INTEGER UNSIGNED NOT NULL, linter_cat INTEGER UNSIGNED NOT NULL, linter_start INTEGER UNSIGNED NOT NULL, linter_end INTEGER UNSIGNED NOT NULL, linter_params BLOB DEFAULT NULL, linter_namespace INTEGER DEFAULT NULL ); |
| 12 |
INSERT INTO /*_*/linter ( linter_id, linter_page, linter_cat, linter_start, linter_end, linter_params ) |
| 13 |
SELECT linter_id, linter_page, linter_cat, linter_start, linter_end, linter_params |
| 14 |
FROM /*_*/__temp__linter; |
| 15 |
DROP TABLE /*_*/__temp__linter; |
| 16 |
CREATE INDEX linter_page ON /*_*/linter (linter_page); |
| 17 |
CREATE UNIQUE INDEX linter_cat_page_position ON /*_*/linter ( linter_cat, linter_page, linter_start, linter_end ); |
| 18 |
CREATE INDEX linter_cat_namespace ON /*_*/linter (linter_cat, linter_namespace); |