Commit 5f9c0712 authored by Nigel McNie's avatar Nigel McNie
Browse files

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

(cherry picked from commit 4bb025de)

Conflicts:

	htdocs/lib/version.php
parent 02a0b90e
......@@ -1490,6 +1490,12 @@ function xmldb_core_upgrade($oldversion=0) {
)));
}
if ($oldversion < 2008122300) {
// 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 = 2008121500;
$config->version = 2008122300;
$config->release = '1.1.0beta3dev';
$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