summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-page_restrictions.sql
blob: c0eafab9e5cc5abb8e4af01dd41d1d97ad0e84c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Used for storing page restrictions (i.e. protection levels)
CREATE TABLE /*$wgDBprefix*/page_restrictions (
	-- Page to apply restrictions to (Foreign Key to page).
	pr_page int(8) NOT NULL,
	-- The protection type (edit, move, etc)
	pr_type varchar(255) NOT NULL,
	-- The protection level (Sysop, autoconfirmed, etc)
	pr_level varchar(255) NOT NULL,
	-- Whether or not to cascade the protection down to pages transcluded.
	pr_cascade tinyint(4) NOT NULL,
	-- Field for future support of per-user restriction.
	pr_user int(8) NULL,
	-- Field for time-limited protection.
	pr_expiry char(14) binary NULL,

	PRIMARY KEY pr_pagetype (pr_page,pr_type),

	KEY pr_page (pr_page),
	KEY pr_typelevel (pr_type,pr_level),
	KEY pr_level (pr_level),
	KEY pr_cascade (pr_cascade)
) /*$wgDBTableOptions*/;