function system_update_7032 in Drupal 7
Alter field hostname to identifier in the {flood} table.
Related topics
File
- modules/
system/ system.install, line 2267 - Install, update and uninstall functions for the system module.
Code
function system_update_7032() {
db_drop_index('flood', 'allow');
db_change_field('flood', 'hostname', 'identifier', array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
));
db_add_index('flood', 'allow', array(
'event',
'identifier',
'timestamp',
));
}