ur_id int NOT NULL auto_increment,
-- Restriction type. Block from either editing namespace or page
ur_id int NOT NULL auto_increment,
-- Restriction type. Block from either editing namespace or page
-- Namespace to restrict if ur_type = namespace
ur_namespace int default NULL,
-- Page to restrict if ur_type = page
-- Namespace to restrict if ur_type = namespace
ur_namespace int default NULL,
-- Page to restrict if ur_type = page
-- User that is restricted
ur_user int unsigned NOT NULL,
-- User that is restricted
ur_user int unsigned NOT NULL,
-- User who has done this restriction
ur_by int unsigned NOT NULL,
ur_by_text varchar(255) binary NOT NULL default '',
-- Reason for this restriction
-- User who has done this restriction
ur_by int unsigned NOT NULL,
ur_by_text varchar(255) binary NOT NULL default '',
-- Reason for this restriction
-- Time when this restriction was made
ur_timestamp varbinary(14) NOT NULL default '',
-- Time when this restriction was made
ur_timestamp varbinary(14) NOT NULL default '',
PRIMARY KEY ur_id (ur_id),
-- For looking up restrictions for user and title
PRIMARY KEY ur_id (ur_id),
-- For looking up restrictions for user and title
INDEX ur_user_page(ur_user,ur_page_namespace,ur_page_title(255)),
INDEX ur_user_namespace(ur_user,ur_namespace),
-- For Special:ListUserRestrictions
INDEX ur_user_page(ur_user,ur_page_namespace,ur_page_title(255)),
INDEX ur_user_namespace(ur_user,ur_namespace),
-- For Special:ListUserRestrictions
INDEX ur_namespace (ur_namespace,ur_timestamp),
INDEX ur_page (ur_page_namespace,ur_page_title,ur_timestamp),
INDEX ur_timestamp (ur_timestamp),
INDEX ur_namespace (ur_namespace,ur_timestamp),
INDEX ur_page (ur_page_namespace,ur_page_title,ur_timestamp),
INDEX ur_timestamp (ur_timestamp),