Commit cc7c7545 authored by Nigel McNie's avatar Nigel McNie
Browse files

Upgrade path to add the cronjob to clean up old exports.

parent 740cbbd2
......@@ -1086,6 +1086,18 @@ function xmldb_core_upgrade($oldversion=0) {
add_field($table, $field);
}
if ($oldversion < 2009052700) {
// Install a cron job to clean out old exports
$cron = new StdClass;
$cron->callfunction = 'export_cleanup_old_exports';
$cron->minute = '0';
$cron->hour = '3,13';
$cron->day = '*';
$cron->month = '*';
$cron->dayofweek = '*';
insert_record('cron', $cron);
}
return $status;
}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009051201;
$config->version = 2009052700;
$config->release = '1.2.0alpha3dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.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