2020-08-22 20:48:51 +00:00
|
|
|
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
2022-01-20 22:58:10 +00:00
|
|
|
-- Source: tables.json
|
2020-08-22 20:48:51 +00:00
|
|
|
-- Do not modify this file directly.
|
|
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
|
|
CREATE TABLE linter (
|
|
|
|
linter_id SERIAL NOT NULL,
|
|
|
|
linter_page INT NOT NULL,
|
2022-01-20 22:58:10 +00:00
|
|
|
linter_namespace INT DEFAULT NULL,
|
2020-08-22 20:48:51 +00:00
|
|
|
linter_cat INT NOT NULL,
|
|
|
|
linter_start INT NOT NULL,
|
|
|
|
linter_end INT NOT NULL,
|
|
|
|
linter_params TEXT DEFAULT NULL,
|
2021-09-09 23:41:20 +00:00
|
|
|
linter_template TEXT DEFAULT '' NOT NULL,
|
|
|
|
linter_tag TEXT DEFAULT '' NOT NULL,
|
2020-08-22 20:48:51 +00:00
|
|
|
PRIMARY KEY(linter_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX linter_page ON linter (linter_page);
|
|
|
|
|
2022-01-20 22:58:10 +00:00
|
|
|
CREATE INDEX linter_cat_namespace ON linter (linter_cat, linter_namespace);
|
|
|
|
|
2020-08-22 20:48:51 +00:00
|
|
|
CREATE UNIQUE INDEX linter_cat_page_position ON linter (
|
|
|
|
linter_cat, linter_page, linter_start,
|
|
|
|
linter_end
|
|
|
|
);
|
2021-09-09 23:41:20 +00:00
|
|
|
|
|
|
|
CREATE INDEX linter_cat_template ON linter (linter_cat, linter_template);
|
|
|
|
|
|
|
|
CREATE INDEX linter_cat_tag ON linter (linter_cat, linter_tag);
|