Skip to content
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

Consider supporting deleting database snapshot files of old migrations #16331

Closed
nphmuller opened this issue Jun 28, 2019 · 1 comment
Closed

Comments

@nphmuller
Copy link

Since our application is slowly accumulating a lot of database migrations, compiling is starting to take a while (compiling + Roslyn analyzers).

The biggest part of compilation is spend on database snapshots from old migrations. So it would be great if they could be deleted, if I don't want to support reverting those migrations.

See @bricelam 's answer on StackOverflow: https://stackoverflow.com/a/47060795/5473409
I stumbled upon this answer when trying to: Find a recommended way to clean old EFCore migrations

Further technical details

EF Core version: 2.0.0-2.2.4
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Win 10 (1903)
IDE: VS 2019 16.1.3

@nphmuller nphmuller changed the title Consider supporting deleting old migrations database snapshot Consider supporting deleting database snapshot files of old migrations Jun 28, 2019
@ajcvickers
Copy link
Member

@nphmuller This is basically tracked by #2174 which is about squashing migrations. Until that feature is implemented, it should be possible to workaround this by manually deleting or scripting deletions, as Brice says in his post.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants