mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
defined('MOODLE_INTERNAL') || die();
|
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.
|
// RR = release increments - 00 in DEV branches.
|
||||||
// .XX = incremental changes.
|
// .XX = incremental changes.
|
||||||
$release = '4.0dev (Build: 20210115)'; // Human-friendly version name
|
$release = '4.0dev (Build: 20210115)'; // Human-friendly version name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue