function system_update_7045

7.x system.install system_update_7045()

Add expiration field to the {flood} table.

Related topics

File

drupal-7.x/modules/system/system.install, line 2324
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'));
}