Skip to content

New squash command #4

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

Open
luchiniatwork opened this issue Dec 17, 2017 · 0 comments
Open

New squash command #4

luchiniatwork opened this issue Dec 17, 2017 · 0 comments

Comments

@luchiniatwork
Copy link
Owner

The idea would be something like this:

$ lein migrana squash ts1->ts2

This would squash all migrations from ts1 to ts2 onto ts2 (effectively removing all intermediary states).

The why: I'm thinking about two scenarios:

  1. you are coding and applying schema changes one after another and end up with a bunch of inferred migrations. You could squash them all into one before committing.
  2. a project is a bit older and you want to trim down the size of the resources/migrations folder

Potential caveat: squashing would have to be limited to non-tx-fn migrations?

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

1 participant