MDL-78632 core: Update upgrade versions

This commit is contained in:
Andrew Nicols 2023-08-01 09:29:34 +08:00
parent ce9eee67cb
commit b74cea9834
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
2 changed files with 6 additions and 6 deletions

View file

@ -3268,12 +3268,12 @@ privatefiles,moodle|/user/files.php';
upgrade_main_savepoint(true, 2023042400.03);
}
if ($oldversion < 2023042401.08) {
if ($oldversion < 2023042401.09) {
// Upgrade yaml mime type for existing yaml and yml files.
$filetypes = array(
$filetypes = [
'%.yaml' => 'application/yaml',
'%.yml' => 'application/yaml,'
);
];
$select = $DB->sql_like('filename', '?', false);
foreach ($filetypes as $extension => $mimetype) {
@ -3282,12 +3282,12 @@ privatefiles,moodle|/user/files.php';
'mimetype',
$mimetype,
$select,
array($extension)
[$extension]
);
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2023042401.08);
upgrade_main_savepoint(true, 2023042401.09);
}
return true;

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2023042401.08; // 20230424 = branching date YYYYMMDD - do not modify!
$version = 2023042401.09; // 20230424 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.2.1+ (Build: 20230728)'; // Human-friendly version name