diff --git a/lib/db/install.xml b/lib/db/install.xml index 8bcf134caa9..e2ccdc0dbdf 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1927,7 +1927,7 @@ - + @@ -2068,7 +2068,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 3779a9a7992..d98304772b9 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -4494,5 +4494,25 @@ privatefiles,moodle|/user/files.php'; upgrade_main_savepoint(true, 2022041900.03); } + if ($oldversion < 2022041901.05) { + + // Changing precision of field hidden on table grade_categories to (10). + $table = new xmldb_table('grade_categories'); + $field = new xmldb_field('hidden', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'timemodified'); + + // Launch change of precision for field hidden. + $dbman->change_field_precision($table, $field); + + // Changing precision of field hidden on table grade_categories_history to (10). + $table = new xmldb_table('grade_categories_history'); + $field = new xmldb_field('hidden', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'aggregatesubcats'); + + // Launch change of precision for field hidden. + $dbman->change_field_precision($table, $field); + + // Main savepoint reached. + upgrade_main_savepoint(true, 2022041901.05); + } + return true; } diff --git a/version.php b/version.php index c74d2297f9e..8214cb84d84 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2022041901.04; // 20220419 = branching date YYYYMMDD - do not modify! +$version = 2022041901.05; // 20220419 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '4.0.1+ (Build: 20220603)'; // Human-friendly version name