From 9aa3599bc593f1171a1b02bba2d386b963940697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 21 Mar 2025 18:30:15 +0100 Subject: [PATCH] MDL-83985 grade_items: change itemname to 1333 chars --- lib/db/install.xml | 2 +- lib/db/upgrade.php | 8 ++++++++ version.php | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/db/install.xml b/lib/db/install.xml index 2658d15e734..e253b79a330 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1991,7 +1991,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index bc8a5c39475..d8209a65ead 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1710,6 +1710,14 @@ function xmldb_main_upgrade($oldversion) { // Launch change of precision for field name. $dbman->change_field_precision($table, $field); + // Changing precision of field itemname on table grade_items to (1333). + + $table = new xmldb_table('grade_items'); + $field = new xmldb_field('itemname', XMLDB_TYPE_CHAR, '1333', null, null, null, null, 'categoryid'); + + // Launch change of precision for field itemname. + $dbman->change_field_precision($table, $field); + // Main savepoint reached. upgrade_main_savepoint(true, 2025051600.01); } diff --git a/version.php b/version.php index 8c4d98a0083..955fb8dad86 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2025051600.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2025051600.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '5.1dev (Build: 20250516)'; // Human-friendly version name