Add expiration field to the {flood} table.

Related topics

File

modules/system/system.install, line 2453
Install, update and uninstall functions for the system module.

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