Merge branch 'MDL-88011-main' of https://github.com/HuongNV13/moodle

This commit is contained in:
Mihail Geshoski
2026-02-25 00:03:25 +08:00
6 changed files with 25 additions and 28 deletions
+12 -13
View File
@@ -53,19 +53,6 @@ function xmldb_forum_upgrade($oldversion) {
// Automatically generated Moodle v5.0.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2025041401) {
// Changing precision of field name on table forum to (1333).
$table = new xmldb_table('forum');
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'type');
// Launch change of precision for field name.
$dbman->change_field_precision($table, $field);
// Forum savepoint reached.
upgrade_mod_savepoint(true, 2025041401, 'forum');
}
// Automatically generated Moodle v5.1.0 release upgrade line.
// Put any upgrade step following this.
@@ -83,5 +70,17 @@ function xmldb_forum_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2025110500, 'forum');
}
if ($oldversion < 2026022300) {
// Changing precision of field name on table forum to (1333).
$table = new xmldb_table('forum');
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'type');
// Launch change of precision for field name.
$dbman->change_field_precision($table, $field);
// Forum savepoint reached.
upgrade_mod_savepoint(true, 2026022300, 'forum');
}
return true;
}
+1 -1
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2025110500; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2026022300; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2025092600; // Requires this Moodle version.
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
+6 -7
View File
@@ -51,8 +51,10 @@ function xmldb_quiz_upgrade($oldversion) {
// Automatically generated Moodle v5.0.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2025041401) {
// Automatically generated Moodle v5.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2026022300) {
// Changing precision of field name on table quiz to (1333).
$table = new xmldb_table('quiz');
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
@@ -61,10 +63,10 @@ function xmldb_quiz_upgrade($oldversion) {
$dbman->change_field_precision($table, $field);
// Quiz savepoint reached.
upgrade_mod_savepoint(true, 2025041401, 'quiz');
upgrade_mod_savepoint(true, 2026022300, 'quiz');
}
if ($oldversion < 2026011600) {
if ($oldversion < 2026022400) {
// Queue tasks to process stuck quiz attempts (state = 'submitted').
$attemptids = $DB->get_fieldset_select(
'quiz_attempts',
@@ -79,11 +81,8 @@ function xmldb_quiz_upgrade($oldversion) {
}
// Quiz savepoint reached.
upgrade_mod_savepoint(true, 2026011600, 'quiz');
upgrade_mod_savepoint(true, 2026022400, 'quiz');
}
// Automatically generated Moodle v5.1.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
+1 -1
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2026011600;
$plugin->version = 2026022400;
$plugin->requires = 2025092600;
$plugin->component = 'mod_quiz';
+4 -5
View File
@@ -45,8 +45,10 @@ function xmldb_subsection_upgrade($oldversion) {
// Automatically generated Moodle v5.0.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2025041401) {
// Automatically generated Moodle v5.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2026022300) {
// Changing precision of field name on table subsection to (1333).
$table = new xmldb_table('subsection');
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
@@ -55,11 +57,8 @@ function xmldb_subsection_upgrade($oldversion) {
$dbman->change_field_precision($table, $field);
// Subsection savepoint reached.
upgrade_mod_savepoint(true, 2025041401, 'subsection');
upgrade_mod_savepoint(true, 2026022300, 'subsection');
}
// Automatically generated Moodle v5.1.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
+1 -1
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_subsection';
$plugin->version = 2025100602;
$plugin->version = 2026022300;
$plugin->requires = 2025092600;
$plugin->maturity = MATURITY_STABLE;