-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration error during upgrade from < 3.2.0 with PHP 8.1 #8284
Comments
Ah, this appears to specifically affect 3.1.2. There is automated test coverage for upgrades from older (3.1.1-2) and newer (3.2.x) upgrades, but not 3.1.2; I've duplicated the issue locally with a test dataset from that version. I'll see if I can track this down and also add automated upgrade testing for 3.1.2. |
This appears to be an ADODB problem with a recent-ish change to mysqli error handling -- potentially fixed with newer ADODBs, but I wasn't able to find it. Previously, the XMLSchema toolset would look for existing indexes and columns on a table without regard for whether or not that table existed. If it didn't, there would be a MySQL error generated, and a I worked around this by checking for table existence before calling I have also added a 3.1.2 test dataset from my personal collection and will see if I can get automated upgrade testing working with that. |
Tests passed -- committed to |
Back-ported to |
Describe the bug
I am receiving a fatal error during the migration of OJS with versions below 3.2.0 to the current main with PHP8.1:
To Reproduce
Steps to reproduce the behavior:
php8.1 tools/upgrade.php upgrade
What application are you using?
upgrade from OJS stable-3_1_2 to main
Additional information
Looks like a failure to create a new table when syncing with the schema.
The text was updated successfully, but these errors were encountered: