* Update ipblocks table in MySQL 5 table defs
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 2 Dec 2005 00:38:02 +0000 (00:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 2 Dec 2005 00:38:02 +0000 (00:38 +0000)
RELEASE-NOTES
maintenance/mysql5/tables.sql

index 763a587..63492f0 100644 (file)
@@ -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 ===
 
index ceb86f7..29b4715 100644 (file)
@@ -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;