Skip to content

Ability to rollback MySQL migrations in interruption case #16

@Eugentis

Description

@Eugentis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions