| 1 |
-- This file is automatically generated using maintenance/generateSchemaSql.php. |
| 2 |
-- Source: tables.json |
| 3 |
-- Do not modify this file directly. |
| 4 |
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes |
| 5 |
CREATE TABLE linter ( |
| 6 |
linter_id SERIAL NOT NULL, |
| 7 |
linter_page INT NOT NULL, |
| 8 |
linter_namespace INT DEFAULT NULL, |
| 9 |
linter_cat INT NOT NULL, |
| 10 |
linter_start INT NOT NULL, |
| 11 |
linter_end INT NOT NULL, |
| 12 |
linter_params TEXT NOT NULL, |
| 13 |
linter_template TEXT DEFAULT '' NOT NULL, |
| 14 |
linter_tag TEXT DEFAULT '' NOT NULL, |
| 15 |
PRIMARY KEY(linter_id) |
| 16 |
); |
| 17 |
|
| 18 |
CREATE INDEX linter_page ON linter (linter_page); |
| 19 |
|
| 20 |
CREATE INDEX linter_cat_namespace ON linter (linter_cat, linter_namespace); |
| 21 |
|
| 22 |
CREATE UNIQUE INDEX linter_cat_page_position ON linter ( |
| 23 |
linter_cat, linter_page, linter_start, |
| 24 |
linter_end |
| 25 |
); |
| 26 |
|
| 27 |
CREATE INDEX linter_cat_template ON linter (linter_cat, linter_template); |
| 28 |
|
| 29 |
CREATE INDEX linter_cat_tag ON linter (linter_cat, linter_tag); |