Skip to content

Executing "older" migrations #16

Open
@luca-rath

Description

@luca-rath

If there exists a migration, that has not been executed yet, with a timestamp older than the last executed migration in the project, that migration will show with status n/a when executing bin/console phpcr:migrations:status, but running bin/console phpcr:migrations:migrate will never execute that migration. You would have to downgrade all newer migrations, then upgrade that specific migration and finally upgrade all newer migrations again. This usually happens, when you upgrade a bundle which has new migrations.

image

Doctrine-Migrations handles this by just executing all the non-executed migrations in the order of their timestamp, no matter if there are newer migrations that have already been executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions