How do I migrate down? (revert migration) #4944
Unanswered
arogozhnikov
asked this question in
Q&A
Replies: 1 comment 3 replies
-
There is no way to migrate down so far. You can revert your schema (either with editor or git) and create another migration. Also you can try the new migration workflow #4682 if you want. It doesn't require creating migrations for experimentation. But you have to install nightly command-line tool and newer server for that:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry if missing something obvious, but search did not show anything helpful.
CLI does not understand command to migrate to a specific version in the past, insisting that "revision XXX is the ancestor of the latest YYY".
I use migrations to first migrate multiple times in local/dev db, and then roll them back if ideas did not work.
Or if I need to reorganize migrations (e.g. put multiple migrations into one, or visa versa).
Beta Was this translation helpful? Give feedback.
All reactions