diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 5c2dcca3fd3..e9df47aa262 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2684,5 +2684,15 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2021052500.06); } + if ($oldversion < 2021052500.13) { + // Remove all the files with component='core_h5p' and filearea='editor' because they won't be used anymore. + $fs = get_file_storage(); + $syscontext = context_system::instance(); + $fs->delete_area_files($syscontext->id, 'core_h5p', 'editor'); + + // Main savepoint reached. + upgrade_main_savepoint(true, 2021052500.13); + } + return true; } diff --git a/version.php b/version.php index 0c05fb08ed2..012d2ef3b61 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2021052500.12; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2021052500.13; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '4.0dev (Build: 20200910)'; // Human-friendly version name