-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add config item for recursive migration directories #43
Comments
I like it. :) This works nicely with your local config file patch. The only concern I can think of is if some user has non-migration SQL under a migration directory. I think that is unlikely, so go for it. It looks like Posix find has My general concerns are backwards compatibility, trying to avoid config option explosion, continuing to remove bash-specific commands, and not breaking it. |
Note: While the above commit works when versions are exclusively timestamps, it doesn't work when versions may match The fix for this is simple: Instead of using (See complete merges at https://github.com/cfxmarkets/shmig/tree/cfx) |
+1 for adding |
@srghma , I'm not sure what the status of PR #44 is, but what I understood from that discussion is what @mbucc had started to integrate the changes, but never did. I'm now maintaining a stable fork with this functionality at https://github.com/cfxmarkets/shmig if you'd like to use that. Documentation should be up to date on that. |
@kael-shipman tnx, will check it |
I agree this is a good feature. The TODO list is:
So it will come, but only when I'm confident it is properly tested. |
Sorry to hammer you with change requests :P. I just thought that allowing recursion in migration directories would make a practical implementation of different migration environments easier. For example:
With this setup, you can see that as you create schema modifications in
schema
, they're automatically included in both of the environment folders,dev
andprod
, while these respective folders can add migrations of their own. However, this only works if thefind_migrations
command relaxes itsmax-depth
parameter.The text was updated successfully, but these errors were encountered: