-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k ef remove to current migration (and squash migrations) #2031
Comments
I use this because while development I go and create as many migrations I need as soon as I need them (domain driven database design :D hehe) and when I feel like I'm done, I go back all the migrations and add a fresh one (aka merge all migrations into one). (also fixes some migration bugs) |
We often talk about this as the Squash Migrations command, I don't think we have an issue for it. If you're removing all migrations, you can just delete the *.cs files for the migrations and model snapshot after running |
If we implement #1298, you would be able to delete the migration files and the snapshot for the ones you want to remove. The snapshot would then be re-generated on the next add. |
sounds good. thank you @bricelam |
Triage Added an issue to track the squash scenario #2174. Think we have everything covered now. |
right now if I have 25 migrations and I do a
then I have to execute
25 times to get the migrations clean.
I know this is not a very real scenario, but I was thinking if a remove to current would be a good idea
sorry if there is something to do this already.
The text was updated successfully, but these errors were encountered: