MDL-78632 core: Update upgrade versions

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

View file

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

View file

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