function system_update_7032
7.x system.install | system_update_7032() |
- Alter field hostname to identifier in the {flood} table.
Related topics
File
- drupal-7.x/
modules/ system/ system.install, line 2157 - 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'));
}