From 224243b8173b9a75b45072ee81f97601fba83d3c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 18 Mar 2010 19:01:24 +0000
Subject: [PATCH] - Patch #475140 by anarcat: make sure Drupal provides support
 for IPv6.

---
 modules/system/system.install | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/system/system.install b/modules/system/system.install
index 5b34152e6bd8..32eb9eb1acc2 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -534,7 +534,7 @@ function system_schema() {
       'ip' => array(
         'description' => 'IP address',
         'type' => 'varchar',
-        'length' => 32,
+        'length' => 40,
         'not null' => TRUE,
         'default' => '',
       ),
@@ -2387,6 +2387,13 @@ function system_update_7050() {
   db_change_field('batch', 'bid', 'bid', array('description' => 'Primary Key: Unique batch ID.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE));
 }
 
+/**
+ * make the IP field IPv6 compatible
+ */
+function system_update_7051() {
+  db_change_field('blocked_ips', 'ip', 'ip', array('description' => 'IP address', 'type' => 'varchar', 'length' => 40, 'not null' => TRUE, 'default' => ''));
+}
+
 /**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
-- 
GitLab