We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case when there are two migrations, which first creates table and the second one - changes it - using --dry-run crashes migrations.
Migrations cannot "see" tables that are created only "virtually" during dry run. There is error:
There is no table with name 'my_db.my_table' in the schema.
$schema->createTable('my_table');
$schema->getTable('my_table');
bin/console doctrine:migrations:migrate --write-sql='./my.sql'
The expected behavior would be sql script with dumped all migrations - without any errors.
The text was updated successfully, but these errors were encountered:
Failing test for #806
7dc4d2b
Use the same Schema object when running migrations in a dry run to fix …
5f79a37
…#806
dcc2bf2
3c70ad3
jwage
No branches or pull requests
Bug Report
Summary
In case when there are two migrations, which first creates table and the second one - changes it - using --dry-run crashes migrations.
Current behavior
Migrations cannot "see" tables that are created only "virtually" during dry run. There is error:
How to reproduce
$schema->createTable('my_table');
$schema->getTable('my_table');
bin/console doctrine:migrations:migrate --write-sql='./my.sql'
Expected behavior
The expected behavior would be sql script with dumped all migrations - without any errors.
The text was updated successfully, but these errors were encountered: