X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Ftables.sql;h=062052f77cfa805faf363275339be9eafded96c3;hb=51491c785b688a63949d0500703e38b95700d948;hp=66a18459473bc46f9091c4b35afbbc9602a9aee1;hpb=5a7b4d3f95db6055da83dc546933d8232520d950;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/tables.sql b/maintenance/tables.sql index 66a1845947..062052f77c 100644 --- a/maintenance/tables.sql +++ b/maintenance/tables.sql @@ -25,7 +25,7 @@ -- in early 2002 after a lot of trouble with the fields -- auto-updating. -- --- The Postgres backend uses DATETIME fields for timestamps, +-- The Postgres backend uses TIMESTAMPTZ fields for timestamps, -- and we will migrate the MySQL definitions at some point as -- well. -- @@ -571,10 +571,7 @@ CREATE TABLE /*_*/category ( -- ing is not. cat_pages int signed NOT NULL default 0, cat_subcats int signed NOT NULL default 0, - cat_files int signed NOT NULL default 0, - - -- Reserved for future use - cat_hidden tinyint unsigned NOT NULL default 0 + cat_files int signed NOT NULL default 0 ) /*$wgDBTableOptions*/; CREATE UNIQUE INDEX /*i*/cat_title ON /*_*/category (cat_title); @@ -772,7 +769,13 @@ CREATE TABLE /*_*/ipblocks ( ipb_block_email bool NOT NULL default 0, -- Block allows user to edit their own talk page - ipb_allow_usertalk bool NOT NULL default 0 + ipb_allow_usertalk bool NOT NULL default 0, + + -- ID of the block that caused this block to exist + -- Autoblocks set this to the original block + -- so that the original block being deleted also + -- deletes the autoblocks + ipb_parent_block_id int default NULL ) /*$wgDBTableOptions*/; @@ -784,6 +787,7 @@ CREATE INDEX /*i*/ipb_user ON /*_*/ipblocks (ipb_user); CREATE INDEX /*i*/ipb_range ON /*_*/ipblocks (ipb_range_start(8), ipb_range_end(8)); CREATE INDEX /*i*/ipb_timestamp ON /*_*/ipblocks (ipb_timestamp); CREATE INDEX /*i*/ipb_expiry ON /*_*/ipblocks (ipb_expiry); +CREATE INDEX /*i*/ipb_parent_block_id ON /*_*/ipblocks (ipb_parent_block_id); --