-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Column order doesn't match order of properties in the entity class in "diff" command #558
Comments
Even in |
As far as I know, it was never a goal to keep the order the same. Also this issue is related to the schema diff generation which is done by the dbal not by doctrine migrations. |
Makes sense, thank you. |
I have an entity, where each property has
@ORM\Column(...)
annotation. Whendiff
command is executed the first time, then columns in created table are ordered exactly as properties in the entity class.When I add property between 2 other properties, then next
diff
run is adding column at the end of the table and not according to property position in the entity class.Is this (not to preserve order of columns in table) expected behavior or a bug?
P.S.
I know that placing columns in specific position in the table is likely to work for MySQL only.
The text was updated successfully, but these errors were encountered: