MDL-87287 qbank_tagquestion: Fix version bump
This commit is contained in:
committed by
Huong Nguyen
parent
2e011c622f
commit
555eef58af
@@ -30,7 +30,7 @@
|
||||
*/
|
||||
function xmldb_qbank_tagquestion_upgrade(int $oldversion): bool {
|
||||
global $DB;
|
||||
if ($oldversion < 2025112800) {
|
||||
if ($oldversion < 2025100601) {
|
||||
// Delete orphaned question tags.
|
||||
$orphanedtags = $DB->get_records_sql("
|
||||
SELECT ti.id
|
||||
@@ -44,7 +44,7 @@ function xmldb_qbank_tagquestion_upgrade(int $oldversion): bool {
|
||||
$DB->delete_records_list('tag_instance', 'id', array_keys($orphanedtags));
|
||||
}
|
||||
|
||||
upgrade_plugin_savepoint(true, 2025112800, 'qbank', 'tagquestion');
|
||||
upgrade_plugin_savepoint(true, 2025100601, 'qbank', 'tagquestion');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'qbank_tagquestion';
|
||||
$plugin->version = 2025112800;
|
||||
$plugin->version = 2025100601;
|
||||
$plugin->requires = 2025092600;
|
||||
$plugin->maturity = MATURITY_STABLE;
|
||||
|
||||
Reference in New Issue
Block a user