Skip to content

Commit

Permalink
MDL-80231 core: cleanup of DB upgrades around ltiservice -> ltixservice
Browse files Browse the repository at this point in the history
Adds a section to update records in the lti_types_config table.
  • Loading branch information
agwells authored and snake committed May 21, 2024
1 parent c25501e commit 38fd091
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 38fd091

Please sign in to comment.