I like how light this tool is, and how clean the source is, but I do miss having rollbacks in a migration tool.
I think it would require 2 changes to get them though:
- the migrate step would need to filter out
.down.cql files.
- A new task would need to get added that takes a migration name as a prameter. Something like
rollback --target 20160101-new-table, which would run all the .down.cql files after the provided migration. Basically undo all the migrations after the 20160101-new-table.
How does this sound? I could write up a PR if it sounds good.
Thanks,
Charles
I like how light this tool is, and how clean the source is, but I do miss having rollbacks in a migration tool.
I think it would require 2 changes to get them though:
.down.cqlfiles.rollback --target 20160101-new-table, which would run all the.down.cqlfiles after the provided migration. Basically undo all the migrations after the20160101-new-table.How does this sound? I could write up a PR if it sounds good.
Thanks,
Charles