Skip to content
Snippets Groups Projects
Commit 224243b8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent adb7506a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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.
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment