MDL-81867 qbank_columnsortorder: correct/cleanup previous upgrade step.

This commit is contained in:
Paul Holden 2024-05-10 09:08:41 +01:00
parent 477aa7c750
commit 513bafbcfd
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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;