%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/maintenance/mssql/archives/ |
Current File : //www/varak.net/wiki.varak.net/maintenance/mssql/archives/patch-ipblocks_restrictions-table.sql |
-- For partial block restrictions -- CREATE TABLE /*_*/ipblocks_restrictions ( ir_ipb_id int NOT NULL CONSTRAINT FK_ir_ipb_id FOREIGN KEY REFERENCES /*_*/ipblocks(ipb_id) ON DELETE CASCADE, ir_type tinyint NOT NULL, ir_value int NOT NULL, CONSTRAINT PK_ipblocks_restrictions PRIMARY KEY (ir_ipb_id, ir_type, ir_value) ) /*$wgDBTableOptions*/; -- Index to query restrictions by the page or namespace. CREATE INDEX /*i*/ir_type_value ON /*_*/ipblocks_restrictions (ir_type, ir_value);