You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 column author to books. You can only undo version 2 migration by running cassandra-migrate reset 1. But you cannot undo version 1 migration by running cassandra-migrate reset 0. Since 0 causes a ValueError
ValueError: Invalid database version, must be a number > 0 or the name of an existing migration
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: