function system_update_7032

Alter field hostname to identifier in the {flood} table.

Related topics

File

modules/system/system.install, line 2286

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',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.