mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-50602 - Automated backup: Remove old backups associated to courses
Refactoring and renaming of settings.
This commit is contained in:
parent
694f195da0
commit
2b7c85da17
8 changed files with 311 additions and 184 deletions
|
@ -4572,5 +4572,17 @@ function xmldb_main_upgrade($oldversion) {
|
|||
upgrade_main_savepoint(true, 2015092200.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2015092400.01) {
|
||||
// Rename backup_auto_keep setting to backup_auto_max_kept.
|
||||
$keep = get_config('backup', 'backup_auto_keep');
|
||||
if ($keep !== false) {
|
||||
set_config('backup_auto_max_kept', $keep, 'backup');
|
||||
unset_config('backup_auto_keep', 'backup');
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2015092400.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue