mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-81867 qbank_columnsortorder: correct/cleanup previous upgrade step.
This commit is contained in:
parent
477aa7c750
commit
513bafbcfd
@ -66,8 +66,15 @@ function xmldb_qbank_columnsortorder_upgrade(int $oldversion): bool {
|
||||
$updatedconfig = implode(',', $updatedcols);
|
||||
set_config($config->name, $updatedconfig, 'qbank_columnsortorder');
|
||||
}
|
||||
|
||||
// Custom sort order savepoint reached.
|
||||
upgrade_plugin_savepoint(true, 2024042201, 'qbank', 'qbank_columnsortorder');
|
||||
upgrade_plugin_savepoint(true, 2024042201, 'qbank', 'columnsortorder');
|
||||
}
|
||||
|
||||
if ($oldversion < 2024042202) {
|
||||
// Remove plugin entry created by previously incorrect 2024042201 savepoint.
|
||||
$DB->delete_records('config_plugins', ['plugin' => 'qbank_qbank_columnsortorder']);
|
||||
upgrade_plugin_savepoint(true, 2024042202, 'qbank', 'columnsortorder');
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -26,6 +26,6 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'qbank_columnsortorder';
|
||||
$plugin->version = 2024042201;
|
||||
$plugin->version = 2024042202;
|
||||
$plugin->requires = 2024041600;
|
||||
$plugin->maturity = MATURITY_STABLE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user