MDL-58266 core_completion: Fix incorrect version bump.

Version was bumped in previously merged issue
This commit is contained in:
Ilya Tregubov 2022-10-17 14:30:38 +03:00
parent 09de114dd2
commit d5e9b5ba2b
2 changed files with 7 additions and 7 deletions

View File

@ -2937,7 +2937,7 @@ privatefiles,moodle|/user/files.php';
upgrade_main_savepoint(true, 2022101400.01);
}
if ($oldversion < 2022101400.02) {
if ($oldversion < 2022101400.03) {
// Define table to store completion viewed.
$table = new xmldb_table('course_modules_viewed');
@ -2959,10 +2959,10 @@ privatefiles,moodle|/user/files.php';
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2022101400.02);
upgrade_main_savepoint(true, 2022101400.03);
}
if ($oldversion < 2022101400.03) {
if ($oldversion < 2022101400.04) {
// Add legacy data to the new table.
$transaction = $DB->start_delegated_transaction();
upgrade_set_timeout(3600);
@ -2975,10 +2975,10 @@ privatefiles,moodle|/user/files.php';
$transaction->allow_commit();
// Main savepoint reached.
upgrade_main_savepoint(true, 2022101400.03);
upgrade_main_savepoint(true, 2022101400.04);
}
if ($oldversion < 2022101400.04) {
if ($oldversion < 2022101400.05) {
// Define field viewed to be dropped from course_modules_completion.
$table = new xmldb_table('course_modules_completion');
$field = new xmldb_field('viewed');
@ -2989,7 +2989,7 @@ privatefiles,moodle|/user/files.php';
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2022101400.04);
upgrade_main_savepoint(true, 2022101400.05);
}
return true;

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2022101400.04; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2022101400.05; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.1dev+ (Build: 20221014)'; // Human-friendly version name