mirror of
https://github.com/moodle/moodle.git
synced 2025-03-16 05:30:06 +01:00
The previous upgrade step was both duplicating a lot of code, and also very non-performant as each record was fetched from the DB into PHP and updated there. Most of the operations can be performed straight into the database without requiring any fetch to PHP at all. This change includes unit tests for the new upgrade steps to ensure that only the relevant data is created, updated, or deleted.