Commit 4bb025de authored by Nigel McNie's avatar Nigel McNie
Browse files

Upgrade path to delete all items from the activity queue older than two weeks.

parent 6448f598
......@@ -1026,6 +1026,12 @@ function xmldb_core_upgrade($oldversion=0) {
set_config('sendemail', '1');
}
if ($oldversion < 2008040212) {
// Delete all activity_queue entries older than 2 weeks. Designed to
// prevent total spammage caused by the activity queue processing bug
delete_records_select('activity_queue', 'ctime < ?', array(db_format_timestamp(time() - (86400 * 14))));
}
return $status;
}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040211;
$config->version = 2008040212;
$config->release = '1.0.7testing';
$config->minupgradefrom = 2007080700;
$config->minupgraderelease = '0.8.0 (release tag 0.8.0_RELEASE)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment