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

Ability to rollback MySQL migrations in interruption case #16

Open
Eugentis opened this issue Jun 8, 2021 · 0 comments
Open

Ability to rollback MySQL migrations in interruption case #16

Eugentis opened this issue Jun 8, 2021 · 0 comments

Comments

@Eugentis
Copy link

Eugentis commented Jun 8, 2021

In current migrations implementation it is possible case when migration fails after implementing some changes.
If such migration fails you must rollback it manually from db.

I know about the problem with transactions for db schema modifications.

But if you have down method with correct commands order php can make these action to revert already applied changes. Iunderstand that it fails when met some not applied changes.
But it will rollback applied changes and you don't need to rollback it manually.

For example it can be implemented as some mode for migrations.

This problem with rollback migrations seems to me very strange as soon as I didn't met it on different Symfony+Doctrine projects with migrations. Doctrine migrations make rollback in any case. Maybe they have some solution for this problem?

@roxblnfk roxblnfk added this to Cycle Jan 4, 2022
@roxblnfk roxblnfk moved this to Backlog in Cycle Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant