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

merge-requests/26/head
Dries Buytaert 2010-03-18 19:01:24 +00:00
parent adb7506a58
commit 224243b817
1 changed files with 8 additions and 1 deletions

View File

@ -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.