Run the online assignment cleanup code automatically on an upgrade. (SE)

This commit is contained in:
moodler
2005-07-21 10:46:37 +00:00
parent 8bd9d5fe2e
commit 3b4ff6edb6
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -1478,6 +1478,13 @@ function main_upgrade($oldversion=0) {
table_column('event', '', 'sequence', 'integer', '10', 'unsigned', '1', 'not null', 'uuid');
}
if ($oldversion < 2005072100) { // run the online assignment cleanup code
include($CFG->dirroot.'/'.$CFG->admin.'/oacleanup.php');
if (function_exists('online_assignment_cleanup')) {
online_assignment_cleanup();
}
}
return $result;
}
+7
View File
@@ -1197,6 +1197,13 @@ function main_upgrade($oldversion=0) {
table_column('event', '', 'uuid', 'char', '36', '', '', 'not null', 'visible');
table_column('event', '', 'sequence', 'integer', '10', 'unsigned', '1', 'not null', 'uuid');
}
if ($oldversion < 2005072100) { // run the online assignment cleanup code
include($CFG->dirroot.'/'.$CFG->admin.'/oacleanup.php');
if (function_exists('online_assignment_cleanup')) {
online_assignment_cleanup();
}
}
return $result;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005072000; // YYYYMMDD = date
$version = 2005072100; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.6 development'; // Human-friendly version name