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

[3.0] Wrong version is shown when migrating down #313

Closed
emodric opened this issue Apr 8, 2020 · 2 comments
Closed

[3.0] Wrong version is shown when migrating down #313

emodric opened this issue Apr 8, 2020 · 2 comments
Milestone

Comments

@emodric
Copy link

emodric commented Apr 8, 2020

When I'm migrating to a previous version with prev keyword, the wrong version is shown in the output. E.g. if I'm currently at Version5, and I want to migrate to Version4, the output is [notice] Migrating down to Version5

Real output below, two commands executed one after another. The first notice in the output should've said [notice] Migrating down to Netgen\Layouts\Migrations\Doctrine\Version000800, or eventually "Migrating down from"

eddie@abyss ~/www/layouts $ php bin/console doctrine:migrations:migrate --configuration=vendor/netgen/layouts-core/migrations/doctrine.yaml prev
WARNING! You are about to execute a database migration that could result in schema changes and data loss. Are you sure you wish to continue? (y/n)y
[notice] Migrating down to Netgen\Layouts\Migrations\Doctrine\Version000900
[notice] finished in 2406.3ms, used 48.5M memory, 1 migrations executed, 15 sql queries

eddie@abyss ~/www/layouts $ php bin/console doctrine:migrations:migrate --configuration=vendor/netgen/layouts-core/migrations/doctrine.yaml next
WARNING! You are about to execute a database migration that could result in schema changes and data loss. Are you sure you wish to continue? (y/n)y
[notice] Migrating up to Netgen\Layouts\Migrations\Doctrine\Version000900
@goetas
Copy link
Member

goetas commented Apr 18, 2020

see doctrine/migrations#962

@goetas
Copy link
Member

goetas commented Apr 18, 2020

Solved by doctrine/migrations#962

@goetas goetas closed this as completed Apr 18, 2020
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

2 participants