diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 51a9c54646db7..3866be6aa70ec 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1195,6 +1195,11 @@ function xmldb_main_upgrade($oldversion) { if (!file_exists($versionfile)) { uninstall_plugin('ltiservice', $type); } + + // Move all the service-specific type config for ltiservice_xx plugins to ltixservice_xx. + $oldsettingname = 'ltiservice_'.$type; + $newsettingname = 'ltixservice'.$type; + $DB->set_field('lti_types_config', 'name', $newsettingname, ['name' => $oldsettingname]); } // Main savepoint reached.