MDL-88011 core: Fix wrong version bumpings
This commit is contained in:
@@ -49,8 +49,10 @@ function xmldb_tool_recyclebin_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 < 2025100601) {
|
||||
// Changing precision of field shortname on table tool_recyclebin_category to (1333).
|
||||
$table = new xmldb_table('tool_recyclebin_category');
|
||||
$field = new xmldb_field('shortname', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'categoryid');
|
||||
@@ -73,11 +75,8 @@ function xmldb_tool_recyclebin_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Recyclebin savepoint reached.
|
||||
upgrade_plugin_savepoint(true, 2025041401, 'tool', 'recyclebin');
|
||||
upgrade_plugin_savepoint(true, 2025100601, 'tool', 'recyclebin');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'tool_recyclebin'; // Full name of the plugin (used for diagnostics).
|
||||
|
||||
@@ -144,8 +144,10 @@ function xmldb_assign_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 < 2025100601) {
|
||||
// Changing precision of field name on table assign to (1333).
|
||||
$table = new xmldb_table('assign');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -154,11 +156,8 @@ function xmldb_assign_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Assign savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'assign');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'assign');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_assign'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
|
||||
@@ -83,8 +83,10 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) {
|
||||
// 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 < 2025100601) {
|
||||
// Changing precision of field name on table bigbluebuttonbn to (1333).
|
||||
|
||||
$table = new xmldb_table('bigbluebuttonbn');
|
||||
@@ -94,12 +96,9 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Bigbluebuttonbn savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'bigbluebuttonbn');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'bigbluebuttonbn');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,6 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
|
||||
$plugin->version = 2025100600;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
$plugin->component = 'mod_bigbluebuttonbn';
|
||||
|
||||
@@ -46,8 +46,10 @@ function xmldb_book_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 < 2025100601) {
|
||||
// Changing precision of field name on table book to (1333).
|
||||
$table = new xmldb_table('book');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -63,11 +65,8 @@ function xmldb_book_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Book savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'book');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'book');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$plugin->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
@@ -58,8 +58,10 @@ function xmldb_choice_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 < 2025100601) {
|
||||
// Changing precision of field name on table choice to (1333).
|
||||
$table = new xmldb_table('choice');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -68,11 +70,8 @@ function xmldb_choice_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Choice savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'choice');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'choice');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -74,8 +74,10 @@ function xmldb_data_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 < 2025100601) {
|
||||
// Changing precision of field name on table data to (1333).
|
||||
$table = new xmldb_table('data');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -84,11 +86,8 @@ function xmldb_data_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Data savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'data');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'data');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -58,8 +58,10 @@ function xmldb_feedback_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 < 2025100601) {
|
||||
// Changing precision of field name on table feedback to (1333).
|
||||
$table = new xmldb_table('feedback');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -75,11 +77,8 @@ function xmldb_feedback_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Feedback savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'feedback');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'feedback');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -61,8 +61,10 @@ function xmldb_folder_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 < 2025100601) {
|
||||
// Changing precision of field name on table folder to (1333).
|
||||
$table = new xmldb_table('folder');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -71,11 +73,8 @@ function xmldb_folder_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Folder savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'folder');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'folder');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -59,8 +59,10 @@ function xmldb_forum_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 < 2025100601) {
|
||||
// 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');
|
||||
@@ -69,11 +71,8 @@ function xmldb_forum_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Forum savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'forum');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'forum');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // 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)
|
||||
|
||||
@@ -58,8 +58,10 @@ function xmldb_glossary_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 < 2025100601) {
|
||||
// Changing precision of field name on table glossary to (1333).
|
||||
$table = new xmldb_table('glossary');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -68,11 +70,8 @@ function xmldb_glossary_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Glossary savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'glossary');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'glossary');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -77,8 +77,10 @@ function xmldb_h5pactivity_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 < 2025100601) {
|
||||
// Changing precision of field name on table h5pactivity to (1333).
|
||||
$table = new xmldb_table('h5pactivity');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -87,11 +89,8 @@ function xmldb_h5pactivity_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// H5pactivity savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'h5pactivity');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'h5pactivity');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_h5pactivity';
|
||||
$plugin->version = 2025100600;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
|
||||
@@ -45,8 +45,10 @@ function xmldb_imscp_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 < 2025100601) {
|
||||
// Changing precision of field name on table imscp to (1333).
|
||||
$table = new xmldb_table('imscp');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -55,11 +57,8 @@ function xmldb_imscp_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Imscp savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'imscp');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'imscp');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -68,8 +68,10 @@ function xmldb_label_upgrade($oldversion) {
|
||||
upgrade_mod_savepoint(true, 2025051300, 'label');
|
||||
}
|
||||
|
||||
if ($oldversion < 2025051301) {
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2025100601) {
|
||||
// Changing precision of field name on table label to (1333).
|
||||
$table = new xmldb_table('label');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -78,11 +80,8 @@ function xmldb_label_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Label savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025051301, 'label');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'label');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_label'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -66,8 +66,10 @@ function xmldb_lesson_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 < 2025100601) {
|
||||
// Changing precision of field name on table lesson to (1333).
|
||||
$table = new xmldb_table('lesson');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -76,11 +78,8 @@ function xmldb_lesson_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Lesson savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'lesson');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'lesson');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -125,8 +125,10 @@ function xmldb_lti_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 < 2025100601) {
|
||||
// Changing precision of field name on table lti to (1333).
|
||||
$table = new xmldb_table('lti');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -135,11 +137,8 @@ function xmldb_lti_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Lti savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'lti');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'lti');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_lti'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -61,8 +61,10 @@ function xmldb_page_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 < 2025100601) {
|
||||
// Changing precision of field name on table page to (1333).
|
||||
$table = new xmldb_table('page');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -71,11 +73,8 @@ function xmldb_page_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Page savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'page');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'page');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -38,8 +38,10 @@ function xmldb_qbank_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 < 2025100601) {
|
||||
// Changing precision of field name on table qbank to (1333).
|
||||
$table = new xmldb_table('qbank');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -48,11 +50,8 @@ function xmldb_qbank_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Qbank savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'qbank');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'qbank');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_qbank';
|
||||
$plugin->version = 2025100600;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
|
||||
@@ -136,8 +136,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 < 2025100601) {
|
||||
// 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');
|
||||
@@ -146,11 +148,8 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Quiz savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'quiz');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'quiz');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
$plugin->component = 'mod_quiz';
|
||||
|
||||
@@ -61,8 +61,10 @@ function xmldb_resource_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 < 2025100601) {
|
||||
// Changing precision of field name on table resource to (1333).
|
||||
$table = new xmldb_table('resource');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -71,11 +73,8 @@ function xmldb_resource_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Resource savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'resource');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'resource');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -196,8 +196,10 @@ function xmldb_scorm_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 < 2025100601) {
|
||||
// Changing precision of field name on table scorm to (1333).
|
||||
$table = new xmldb_table('scorm');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -206,11 +208,8 @@ function xmldb_scorm_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Scorm savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'scorm');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'scorm');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics).
|
||||
|
||||
|
||||
@@ -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 < 2025100601) {
|
||||
// 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, 2025100601, 'subsection');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_subsection';
|
||||
$plugin->version = 2025100600;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
$plugin->maturity = MATURITY_STABLE;
|
||||
|
||||
@@ -71,8 +71,10 @@ function xmldb_url_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 < 2025100601) {
|
||||
// Changing precision of field name on table url to (1333).
|
||||
$table = new xmldb_table('url');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -81,11 +83,8 @@ function xmldb_url_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Url savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'url');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'url');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -54,8 +54,10 @@ function xmldb_wiki_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 < 2025100601) {
|
||||
// Changing precision of field name on table wiki to (1333).
|
||||
$table = new xmldb_table('wiki');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, 'Wiki', 'course');
|
||||
@@ -64,11 +66,8 @@ function xmldb_wiki_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Wiki savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'wiki');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'wiki');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
|
||||
|
||||
@@ -51,8 +51,10 @@ function xmldb_workshop_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 < 2025100601) {
|
||||
// Changing precision of field name on table workshop to (1333).
|
||||
$table = new xmldb_table('workshop');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'course');
|
||||
@@ -61,11 +63,8 @@ function xmldb_workshop_upgrade($oldversion) {
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Workshop savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2025041401, 'workshop');
|
||||
upgrade_mod_savepoint(true, 2025100601, 'workshop');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v5.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2025100600; // The current module version (YYYYMMDDXX).
|
||||
$plugin->version = 2025100601; // The current module version (YYYYMMDDXX).
|
||||
$plugin->requires = 2025092600; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_workshop';
|
||||
|
||||
Reference in New Issue
Block a user