From: Brion Vibber Date: Fri, 2 Dec 2005 00:38:02 +0000 (+0000) Subject: * Update ipblocks table in MySQL 5 table defs X-Git-Tag: 1.6.0~1077 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=01dcaf12d022512cfe5b154d269b3c4acb5a0054;p=lhc%2Fweb%2Fwiklou.git * Update ipblocks table in MySQL 5 table defs --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 763a587f18..63492f069e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -273,6 +273,8 @@ fully support the editing toolbar, but was found to be too confusing. * (bug 4035) Fix prev/next revision links on edit page * Fix custom namespaces on wikis set for Portuguese * Major overhaul of Special:Userlogin +* Update ipblocks table in MySQL 5 table defs + === Caveats === diff --git a/maintenance/mysql5/tables.sql b/maintenance/mysql5/tables.sql index ceb86f7f21..29b47157b0 100644 --- a/maintenance/mysql5/tables.sql +++ b/maintenance/mysql5/tables.sql @@ -515,10 +515,16 @@ CREATE TABLE /*$wgDBprefix*/ipblocks ( -- Time at which the block will expire. ipb_expiry char(14) binary NOT NULL default '', + + -- Start and end of an address range, in hexadecimal + -- Size chosen to allow IPv6 + ipb_range_start varchar(32) NOT NULL default '', + ipb_range_end varchar(32) NOT NULL default '', PRIMARY KEY ipb_id (ipb_id), INDEX ipb_address (ipb_address), - INDEX ipb_user (ipb_user) + INDEX ipb_user (ipb_user), + INDEX ipb_range (ipb_range_start(8), ipb_range_end(8)) ) TYPE=InnoDB, DEFAULT CHARSET=utf8;