Commit 224243b8 authored by Dries's avatar Dries

- Patch #475140 by anarcat: make sure Drupal provides support for IPv6.

parent adb7506a
...@@ -534,7 +534,7 @@ function system_schema() { ...@@ -534,7 +534,7 @@ function system_schema() {
'ip' => array( 'ip' => array(
'description' => 'IP address', 'description' => 'IP address',
'type' => 'varchar', 'type' => 'varchar',
'length' => 32, 'length' => 40,
'not null' => TRUE, 'not null' => TRUE,
'default' => '', 'default' => '',
), ),
...@@ -2387,6 +2387,13 @@ function system_update_7050() { ...@@ -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)); 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" * @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000. * The next series of updates should start at 8000.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment