summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 6ba6d1ff9..38753a045 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -898,10 +898,17 @@ function system_schema() {
'not null' => TRUE,
'default' => 0,
),
+ 'expiration' => array(
+ 'description' => 'Expiration timestamp. Expired events are purged on cron run.',
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ ),
),
'primary key' => array('fid'),
'indexes' => array(
'allow' => array('event', 'identifier', 'timestamp'),
+ 'purge' => array('expiration'),
),
);
@@ -2865,6 +2872,14 @@ function system_update_7044() {
}
/**
+ * Add expiration field to the {flood} table.
+ */
+function system_update_7044() {
+ 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'));
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/