Skip to content
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" creates migration table and --dry-run doesn't seem to output queries? #1335

Open
alturic opened this issue Apr 1, 2023 · 0 comments

Comments

@alturic
Copy link

alturic commented Apr 1, 2023

Two quick issues, one looks like it was fixed years ago, but it seems to be back now (#521) as fresh migrate command does create an empty migrations table?

The second is when running symfony console doctrine:migrations:migrate --dry-run I'm expecting an output of what queries will be ran, is this not the expected output? It currently just outputs:

[notice] Migrating (dry-run) up to DoctrineMigrations\Version202304010319391
[notice] finished in 9ms, used 44M memory, 1 migrations executed, 4 sql queries

                                                                                                                        
 [OK] Successfully migrated to version : DoctrineMigrations\Version20230401031939

Now, if I also pass -vv it does show the queries that would be ran, but that makes me question if the docs need to be updated (https://www.doctrine-project.org/projects/doctrine-migrations/en/3.7/reference/managing-migrations.html#dry-run) and also what exactly is the purpose of --dry-run by itself as it seems to imply -vv needs to always be passed with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant