-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
PostgreSQL migration with reserved word double quoted in up() but not in down() #5928
Comments
Transferring to the DBAL since it is responsible for generating the diff. You can see here how |
Also, the DBAL version in use wold be interesting. |
3.5.3, as reported by:
|
I'm quite sure this is due to #5776 |
Bug Report
Encountered within a Symfony 5.4 project using a PostgreSQL 12.x database, with a field named
row
.Summary
Current behavior
How to reproduce
Create or update an entity with a
row
attribute.I didn't take the time to try with other reserved SQL words.
Make a new migration, the generated code is like this:
Expected behavior
The
ALTER TABLE
line indown()
method should encloserow
in double quotes, as it's done inup()
one:The text was updated successfully, but these errors were encountered: