mediawiki-extensions-Linter/lint_categories.sql
Kunal Mehta ec6f4722aa Store linter_cat names in a separate table
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
2016-11-03 14:51:10 -07:00

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);