Run the online assignment cleanup code automatically on an upgrade. (SE)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user