diff --git a/lib/db/install.xml b/lib/db/install.xml index 802a5f592b0..41345e8e814 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1,5 +1,5 @@ - @@ -3509,7 +3509,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 13bd8b7e6dd..c04f124cbb1 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -870,7 +870,7 @@ function xmldb_main_upgrade($oldversion) { $field = new xmldb_field( name: 'attemptsavailable', type: XMLDB_TYPE_INTEGER, - precision: '1', + precision: '2', unsigned: null, notnull: null, sequence: null, @@ -1129,5 +1129,20 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2024030500.02); } + if ($oldversion < 2024032600.01) { + + // Changing precision of field attemptsavailable on table task_adhoc to (2). + $table = new xmldb_table('task_adhoc'); + $field = new xmldb_field('attemptsavailable', XMLDB_TYPE_INTEGER, '2', null, null, null, null, 'pid'); + + // Launch change of precision for field. + if (!$dbman->field_exists($table, $field)) { + $dbman->change_field_precision($table, $field); + } + + // Main savepoint reached. + upgrade_main_savepoint(true, 2024032600.01); + } + return true; } diff --git a/version.php b/version.php index 91e89cdda3a..1b45fa5e761 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2024032600.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2024032600.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '4.4dev+ (Build: 20240326)'; // Human-friendly version name