Bug in upgrade.php stops upgrades working

Bug in upgrade.php stops upgrades working

door Anthony Wright -
Aantal antwoorden: 1
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.
Gemiddelde van de beoordelingen:  -