comeara / pillar

Pillar manages migrations for your Cassandra data stores.
https://github.com/comeara/pillar
MIT License
111 stars 64 forks source link

Implement reversal of migration as a command line option #29

Open krafts opened 8 years ago

krafts commented 8 years ago

I see the class and code exists for reversing the migration. But the cli option is not exposed so the migration can reversed. A required field would be date, I suppose in this case.

ccronca commented 7 years ago

I think, ff timestamp parameter is set before now, migrations are applied in reverse order. https://github.com/comeara/pillar/blob/master/src/main/scala/com/chrisomeara/pillar/CassandraMigrator.scala#L48-L52

comeara commented 7 years ago

Yes, that is the case. Thank you for pointing this out. I've left this open as a task for myself to update the documentation to make this clearer.