MDL-70480 mod_assign: Apply proper upgrade savepoint version

This commit is contained in:
Jun Pataleta
2022-08-30 17:18:38 +08:00
parent 76ed3885a9
commit 633c6d7e80
+2 -2
View File
@@ -65,7 +65,7 @@ function xmldb_assign_upgrade($oldversion) {
// Automatically generated Moodle v3.11.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2022071300) {
if ($oldversion < 2021051701) {
// The most recent assign submission should always have latest = 1, we want to find all records where this is not the case.
// Find the records with the maximum timecreated for each assign and user combination where latest is also 0.
$sqluser = "SELECT s.id
@@ -100,7 +100,7 @@ function xmldb_assign_upgrade($oldversion) {
}
// Assignment savepoint reached.
upgrade_mod_savepoint(true, 2022071300, 'assign');
upgrade_mod_savepoint(true, 2021051701, 'assign');
}
return true;
}