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

dotnet-ef database update -1 (down latest migration) #21615

Open
Tracked by #22945
snebjorn opened this issue Jul 14, 2020 · 0 comments
Open
Tracked by #22945

dotnet-ef database update -1 (down latest migration) #21615

snebjorn opened this issue Jul 14, 2020 · 0 comments
Labels
area-migrations customer-reported punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Milestone

Comments

@snebjorn
Copy link

What problem are you trying to solve?
When working with migrations you often want to remove the latest migration applied to the database.
Exactly like dotnet-ef migrations remove removes the latest migration from the disk.

Describe the solution you'd like
I'd like the ability to easily remove/down the latest migration on the database.
It can be done with another special case in the update command. update 0 downs all migrations on the database. I think it would be handy if update -1 downed the latest migration.

dotnet-ef database update -1

@ajcvickers ajcvickers added this to the Backlog milestone Jul 17, 2020
@ajcvickers ajcvickers modified the milestones: Backlog, 7.0.0 Oct 25, 2021
@ajcvickers ajcvickers added punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. and removed propose-punt labels Jul 7, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0, Backlog Jul 7, 2022
@bricelam bricelam removed their assignment Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-migrations customer-reported punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants