mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-13 17:57:15 +00:00
ec6f4722aa
linter_cat is now an int ID that points to a row in the new lint_categories table. The mapping between category names and ids is all handled in PHP, and cached in APC. Note that you will need to drop the `linter` table manually and re-run update.php for this to take effect. Change-Id: I369d9b4d8d08289b4a20d1cd29a2e327bad28ef8
10 lines
267 B
SQL
10 lines
267 B
SQL
CREATE TABLE /*_*/lint_categories (
|
|
-- primary key
|
|
lc_id int UNSIGNED PRIMARY KEY not null AUTO_INCREMENT,
|
|
-- category name
|
|
lc_name VARCHAR(30) not null
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
-- Query by name
|
|
CREATE UNIQUE INDEX /*i*/lc_name ON /*_*/lint_categories(lc_name);
|