How to squash all migrations into a single one and clear logs to have only one record #303
Unanswered
xperiandri
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have to many migration files so I want to squash them per folder I use. And from that point work as if I have a database where only version 1 migrations exist and only version 1 migrations vere applied.
Squashing itself is pretty simple. Either manually or by dumping a DB.
But how to clean the log record table? Will calling
Repair()
help with that?Beta Was this translation helpful? Give feedback.
All reactions