Debian Codegraph @

extensions/Linter/sql/sqlite/patch-linter-fix-params-null-definition.sql

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