diff --git a/lib/editor/tiny/plugins/recordrtc/db/upgrade.php b/lib/editor/tiny/plugins/recordrtc/db/upgrade.php index f5946b3fa5e..eaf8d1b9cdb 100644 --- a/lib/editor/tiny/plugins/recordrtc/db/upgrade.php +++ b/lib/editor/tiny/plugins/recordrtc/db/upgrade.php @@ -45,6 +45,9 @@ function xmldb_tiny_recordrtc_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2024042400, 'tiny', 'recordrtc'); } + // Automatically generated Moodle v4.5.0 release upgrade line. + // Put any upgrade step following this. + if ($oldversion < 2024100701) { // The input bitrate to be converted. $currentbitrate = get_config('tiny_recordrtc', 'audiobitrate'); @@ -59,12 +62,8 @@ function xmldb_tiny_recordrtc_upgrade($oldversion) { // Update the bitrate setting with the nearest supported bitrate. set_config('audiobitrate', $nearestbitrate, 'tiny_recordrtc'); - // Main savepoint reached. - upgrade_main_savepoint(true, 2024100701); + upgrade_plugin_savepoint(true, 2024100701, 'tiny', 'recordrtc'); } - // Automatically generated Moodle v4.5.0 release upgrade line. - // Put any upgrade step following this. - return true; }