mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-24 07:53:51 +00:00
4544a9c7cc
* This patch contains the code needed to update the database with the addition Linter table column linter_namespace <int/null> and add an index with category and namespace for faster selection of linter records. Bug: T299612 Change-Id: I05da381b9a74294b44d4aef968614277d601a176
24 lines
706 B
SQL
24 lines
706 B
SQL
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
|
-- Source: tables.json
|
|
-- 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,
|
|
linter_namespace INT DEFAULT NULL,
|
|
linter_cat INT NOT NULL,
|
|
linter_start INT NOT NULL,
|
|
linter_end INT NOT NULL,
|
|
linter_params TEXT DEFAULT NULL,
|
|
PRIMARY KEY(linter_id)
|
|
);
|
|
|
|
CREATE INDEX linter_page ON linter (linter_page);
|
|
|
|
CREATE INDEX linter_cat_namespace ON linter (linter_cat, linter_namespace);
|
|
|
|
CREATE UNIQUE INDEX linter_cat_page_position ON linter (
|
|
linter_cat, linter_page, linter_start,
|
|
linter_end
|
|
);
|