-
Notifications
You must be signed in to change notification settings - Fork 58
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 ignoring migrations from a specific application #202
Comments
Hi @blimmer Would the |
Hey @David-Wobrock - I proposed the same idea to my client I was implementing this for. They wanted to be aware in case future migrations in the It looks like Django uses That said, we're certainly not blocked. I appreciate your help and this library, so thank you for everything 😄 |
I completely understand the need, and it makes a lot of sense. I'll keep the issue open for now, in order to reflect on possible ways to make this available. |
👍 thanks for the response. If you'd be willing to make a breaking change, I wonder if you could change the way migrations are specified as parameters to What might be nice about passing these as strings is you could allow passing regex-like strings as well. Then you wouldn't have to have the somewhat duplicative For example, this would cover my use case:
But you could also do other clever things like:
This syntax might be less user-friendly than the current options but would allow for a lot of flexibility. Just a thought 💡 🤔 |
Why not, good suggestion 👍 Let's reflect on that a little bit |
Sure thing. If you went this route, it might be nice to have a little debugger method like The nice part about |
In our application, we're using the
waffle
feature-flag library. The first migration they define (0001_initial
) triggers warnings:As far as I can tell, the only way I can exclude this migration is by name (
0001_initial
). However, other apps will use this0001_initial
naming convention by default, as well.It would be nice if we could somehow exclude this migration by name and app. That way,
0001_initial
in the specified app would not be included, but0001_initial
in all other apps would be included.The text was updated successfully, but these errors were encountered: