The tests in upgrade.php are in the wrong order, so that the last three upgrades are in the wrong order. To keep things simple I'll use v1, v2 etc to illustrate. The tests are structured so that the upgrades happen in this order
V6->V7
V5->V6
V4->V5
V1->V2
V2->V3
V3->V4
Thus if you start with a version of V5 or earlier the upgrade will fail as it will attempt the V6->V7 upgrade first and the tables will still have a V5 (or earlier) layout.
The upgrade.php file needs to be rearranged so that the upgrades are done:
V1->V2
V2->V3
V3->V4
V4->V5
V5->V6
V6->V7
Amended version is attached.
Als antwoord op Anthony Wright
Re: Bug in upgrade.php stops upgrades working
door Luis de Vasconcelos -
Anthony,
THANKS!
You should load this as an issue under the Certificate Module on the Moodle Tracker where all Moodle bugs are reported:
http://tracker.moodle.org/browse/CONTRIB/component/10137
This will ensure that Chardelle sees your report and she can investigate it.