MDL-76033 core: bump version in is_major_upgrade_required

MDL-58266 changes db structure. So upgrade must happen before
accessing any page.
This commit is contained in:
Ilya Tregubov
2022-10-19 15:08:44 +03:00
parent f8d28e4ca6
commit 3f568024a1
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1411,7 +1411,7 @@ function disable_output_buffering() {
*/
function is_major_upgrade_required() {
global $CFG;
$lastmajordbchanges = 2022022200.00;
$lastmajordbchanges = 2022101400.03; // This should be the version where the breaking changes happen.
$required = empty($CFG->version);
$required = $required || (float)$CFG->version < $lastmajordbchanges;