mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-70648 calendar: upgrade step to delete wrong cat events
This commit is contained in:
parent
b9e33cccbf
commit
e8bd3b41a3
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue