Open BARJ opened 6 years ago
Reset consists of a dropping the keyspace and running migrations up to a given version afterwards. Since migrating to version 0 isn't supported (as it doesn't make much sense semantically), neither is resetting. Are you looking for a command that erases the keyspace, and just creates the migration state table, without actually running anything? Can you tell me a bit about what you want to achieve?
At this moment it is not possible to undo all migrations.
For example, if version 1 migration is to create table
books
. And version 2 migration is to add columnauthor
tobooks
. You can only undo version 2 migration by runningcassandra-migrate reset 1
. But you cannot undo version 1 migration by runningcassandra-migrate reset 0
. Since 0 causes aValueError