Skip to content

Commit

Permalink
MDL-78468 admin: Removed the configs while upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
meirzamoodle committed Aug 22, 2023
1 parent 4cfa361 commit 38a0173
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3375,5 +3375,13 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2023081500.00);
}

if ($oldversion < 2023081800.01) {
// Remove enabledevicedetection and devicedetectregex from config table.
unset_config('enabledevicedetection');
unset_config('devicedetectregex');
// Main savepoint reached.
upgrade_main_savepoint(true, 2023081800.01);
}

return true;
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

defined('MOODLE_INTERNAL') || die();

$version = 2023081800.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2023081800.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.3dev+ (Build: 20230818)'; // Human-friendly version name
Expand Down

0 comments on commit 38a0173

Please sign in to comment.