MDL-83691 core: Version and upgrade fixes

* Version bump should be incremented from the latest weekly release.
* Upgrade step should be after the 4.5.0 release line comment.
This commit is contained in:
Jun Pataleta
2024-12-18 13:50:59 +08:00
parent 81eb2ce13b
commit a71c98f540
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -1444,7 +1444,10 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2024100100.02);
}
if ($oldversion < 2024100701.01) {
// Automatically generated Moodle v4.5.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2024100701.02) {
$smsgateways = $DB->get_records('sms_gateways');
foreach ($smsgateways as $gateway) {
$newconfig = json_decode($gateway->config);
@@ -1460,11 +1463,8 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2024100701.01);
upgrade_main_savepoint(true, 2024100701.02);
}
// Automatically generated Moodle v4.5.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2024100701.01; // 20241007 = branching date YYYYMMDD - do not modify!
$version = 2024100701.02; // 20241007 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.5.1+ (Build: 20241213)'; // Human-friendly version name