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

Expand command list for more explicit functionality #10

Closed
rleenders opened this issue Mar 13, 2016 · 0 comments · Fixed by #12
Closed

Expand command list for more explicit functionality #10

rleenders opened this issue Mar 13, 2016 · 0 comments · Fixed by #12
Assignees

Comments

@rleenders
Copy link
Owner

instead of relying solely on desired state migration specification which can get unclear at times (if I roll back to migration N, does that include rolling back N or keeping N applied, how to roll back all migrations including the 1st one, etc)

it would be smart to include explicit directional commands ie:
cassandra-migrate apply (to increment up one migration)
cassandra-migrate apply -a (to run all pending migrations)
cassandra-migrate apply -n ( to migrate up to and including a specified migration)

cassandra-migrate rollback (to rollback one migration)
cassandra-migrate rollback -a (to rollback all applied migrations)
cassandra-migrate rollback -n (to rollback down to and including the specified migration)

this should also simplify some of the parsing since we know explicitly which direction the user intends to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant