doctrine / migrations

Doctrine Database Migrations Library
https://www.doctrine-project.org/projects/migrations.html
MIT License
4.65k stars 387 forks source link

Allow load run `doctrine::migrations::migrate` on a single namespace #1401

Open VincentLanglet opened 4 months ago

VincentLanglet commented 4 months ago

Feature Request

Q A
New Feature yes
RFC yes
BC Break no

Summary

I didn't found out the feature so far, maybe I missed it. In the same way, it's possible to run

bin/console do:mi:diff --namespace=before
bin/console do:mi:diff --namespace=after

I'd like to be able to run

bin/console do:mi:mi --namespace=before
bin/console do:mi:mi --namespace=after

so only running migrations from a specific namespace.

The option existe on execute and on diff, but not on migrate.

For the context I'd like to run specific migrations Before the production and some migrations After the deployement.

I found some issues related to namespace like https://github.com/doctrine/migrations/issues/1074 and the @goetas article (https://www.goetas.com/blog/multi-namespace-migrations-with-doctrinemigrations-30/) but it doesn't seems to answer to this issue.