-
-
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
migrate command executes migrations when --write-sql is passed, output is incomplete #1082
Comments
did you try using he |
Using the
This does not solve the other problem @donataso mentions. You still have to manually create the I would also prefer it to be included into the output versus updating the documentation to state that you will manually have to write that query. |
makes sense |
One more additional note: |
For reference: this was always the case, this has not been changed because of migrating to version 3. |
--dry-run does not include doctrine_migration_versions inset/updates commands too. Seems old issue, I found the same problems recently as mentioned here and will be good to get this fixed. |
Bug Report
According to documentation,
migrate --write-sql
should not execute any migrations and providedoctrine_migration_versions
insert/delete queries, but it executes and does not provide version update queries.It used to work correctly in version 2.
Summary
Described above.
Current behavior
--write-sql
does not prevent migrations from being executed--write-sql
output does not include versions tracking table update queriesHow to reproduce
Run any migration with a
--write-sql
option.Expected behavior
The text was updated successfully, but these errors were encountered: