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
Upgrade issue : Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1064 #687
Comments
Facing the same issue on installing. |
The error is caused by the "DROP CONSTRAINT" statement in public/upgrade.php, which is not supported by MySQL. I'm a bit confused because this error was fixed on Jan 25 by 66c7141 but it looks like the last v.3.3.12 is released from the postfixadmin_3.3 branch at this commit: Pls note that postfixadmin_3.3 branch is 83 commits ahead and 482 commits behind master. Before merging I think it's better asking to @DavidGoodwin which is the correct branch to upgrade from. |
I upgraded to v3.3.1.2 found here : |
I know, I did the same upgrade by checking out the last tag and found the same error! :-) As a quick fix you could change just this line in public/upgrade.php from: but I'd wait instructions about which of the two branches is ok to use, because there are many other commits on master and I don't know how the affect this last release. |
Sorry, it's a testing failure. I use MariaDB locally, so everything "just worked" for me. I should probably pull my finger out and add in a docker-compose.yml / MySQL dependency in the unit tests so we have some better coverage. I've added the missing commit to postfixadmin_3.3 - I think it probably makes sense to have a 3.3.13 release which would include the collation and this fix. |
will this be a hot-fix release (3.3.13), so expected to be released in the next days? |
I'm trying to upgrade to the latest version that was just released. When I visit the setup.php page, it shows this :
The user has all permissions to the database.
The log file shows :
The text was updated successfully, but these errors were encountered: