function system_update_7045

Add expiration field to the {flood} table.

Related topics

File

modules/system/system.install, line 2453

Code

function system_update_7045() {
    db_add_field('flood', 'expiration', array(
        'description' => 'Expiration timestamp. Expired events are purged on cron run.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
    ));
    db_add_index('flood', 'purge', array(
        'expiration',
    ));
}

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