2016-10-13 08:14:18 +00:00
|
|
|
CREATE TABLE /*_*/linter (
|
|
|
|
-- primary key
|
2016-10-24 19:41:02 +00:00
|
|
|
linter_id int UNSIGNED PRIMARY KEY not null AUTO_INCREMENT,
|
2016-10-13 08:14:18 +00:00
|
|
|
-- page id
|
|
|
|
linter_page int UNSIGNED not null,
|
2016-11-22 09:03:02 +00:00
|
|
|
-- error category (see CategoryManager::$categoryIds)
|
2016-10-29 01:06:08 +00:00
|
|
|
linter_cat int UNSIGNED not null,
|
2016-12-01 02:47:05 +00:00
|
|
|
-- start and end positions of where the error is located
|
|
|
|
linter_start int UNSIGNED not null,
|
|
|
|
linter_end int UNSIGNED not null,
|
2016-10-13 08:14:18 +00:00
|
|
|
-- 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);
|
2016-12-06 03:40:27 +00:00
|
|
|
-- Unique index for lint errors, also covers linter_cat for query by category
|
2016-12-01 02:47:05 +00:00
|
|
|
CREATE UNIQUE INDEX /*i*/linter_cat_page_position ON /*_*/linter (linter_cat, linter_page, linter_start, linter_end);
|