MDL-70648 calendar: upgrade step to delete wrong cat events

This commit is contained in:
Simey Lameze 2021-01-20 03:38:10 +08:00
parent b9e33cccbf
commit e8bd3b41a3
2 changed files with 7 additions and 1 deletions

View File

@ -2387,5 +2387,11 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2021052500.42);
}
if ($oldversion < 2021052500.53) {
$DB->delete_records_select('event', "eventtype = 'category' AND categoryid = 0 AND userid <> 0");
upgrade_main_savepoint(true, 2021052500.53);
}
return true;
}

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2021052500.52; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2021052500.53; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.0dev (Build: 20210115)'; // Human-friendly version name