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

Migrations: A command to upgrade snapshots and backing models #18557

Open
Tracked by #22945
bricelam opened this issue Oct 23, 2019 · 1 comment
Open
Tracked by #22945

Migrations: A command to upgrade snapshots and backing models #18557

bricelam opened this issue Oct 23, 2019 · 1 comment

Comments

@bricelam
Copy link
Contributor

bricelam commented Oct 23, 2019

I don't think our current approach of keeping the model snapshots around forever is sustainable. We should consider adding a command like dotnet ef migrations recreate that reads the models (and possibly the migrations) and re-scaffolds them. This would allow us to eventually remove obsolete model building (and migrations) APIs.

We could even issue a warning during dotnet ef migrations add that they have migrations using obsolete APIs and they need to run the new command before they are removed in a future version.

@ajcvickers ajcvickers added this to the Backlog milestone Oct 25, 2019
@bricelam bricelam self-assigned this Nov 5, 2019
@ajcvickers ajcvickers modified the milestones: Backlog, 6.0.0 Nov 2, 2020
@ajcvickers ajcvickers modified the milestones: 6.0.0, Backlog May 5, 2021
@ajcvickers ajcvickers assigned AndriySvyryd and unassigned bricelam May 5, 2021
@AndriySvyryd
Copy link
Member

Consider generating a more efficient snapshot representation: #20104

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

3 participants