mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-13 17:57:15 +00:00
3d12f762e6
For queries that list all errors of a certain type. This patch needs to be applied manually, update.php won't work. Change-Id: I42abded9df3ef2ff242be2b16f4c57bafc03ae39
16 lines
492 B
SQL
16 lines
492 B
SQL
CREATE TABLE /*_*/linter (
|
|
-- primary key
|
|
linter_id int UNSIGNED PRIMARY KEY not null AUTO_INCREMENT,
|
|
-- page id
|
|
linter_page int UNSIGNED not null,
|
|
-- error category (lint_categories.lc_id)
|
|
linter_cat int UNSIGNED not null,
|
|
-- extra parameters about the error, JSON encoded
|
|
linter_params blob NOT NULL
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
-- Query by page
|
|
CREATE INDEX /*i*/linter_page ON /*_*/linter (linter_page);
|
|
-- Query by category
|
|
CREATE INDEX /*i*/linter_cat ON /*_*/linter (linter_cat);
|