SUP-5847: Let the upgrade work from MOODLE_25