Closed E-ThanG closed 2 days ago
@E-ThanG the script is not meant to be run consecutively. But can be done so if the pf_version table is modified manually.
UPDATE `pf_version` SET `version`='X.Y';
That's fine, but Is there an issue with the logic that triggers it then? Ultimately I'd like to be able to complete an update of 14.1 without a failure. Whether I've correctly identified the root cause or not, I'd also like to have the other points considered.
Describe the bug
The development PF branch fails to upgrade the database with the error message "PREVIOUS VERSION 14.1 DOES NOT MATCH 14.0" regardless of which previous DB version is entered. The upgrade script asks for that information, but then ignores it and uses the hard-coded values. The issue probably exists because 14.1 is not the released version, the DB script upgrade-X.X-X.Y.sql has 14.0 as the hard coded previous version. That's the only version that we can possibly be upgrading from? This means that an upgrade from 14.0 to 14.1 works. But "upgrading" from 14.1 to 14.1 doesn't.
Why does it ask for the old version but then ignore the input?
Why is it asking questions at all? It can programmatically determine the old DB version since it's in the database and it already knows the version that the upgrade IS.
The text "You need to input the PF version that comes before $UPGRADE_TO" is not clear. It should say "What database version are you upgrading from? :" or something to that effect. But as I mention above, it really shouldn't be asking at all.
If I am staying in 14.1, it shouldn't be trying to upgrade the database at all, unless it really needs to.
To Reproduce Steps to reproduce the behavior:
Expected behavior dev->dev branch upgrade should work