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

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

Open
VincentLanglet opened this issue Feb 27, 2024 · 1 comment
Open

Comments

@VincentLanglet
Copy link
Contributor

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 #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.

@soorajlv
Copy link

soorajlv commented Jan 16, 2025

I did come across the necessity of the same feature to implement a multi-tenant system where main migrations go to master tables and tenant migrations go to tenant tables. For the time being, I am using a forked version of "mapeveri/multi-tenancy-bundle" to achieve the functionality, but it would be great if the migration bundle supports the functionality out of the box

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