dotnet-ef database update -1 (down latest migration) #21615
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
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 ifupdate -1
downed the latest migration.dotnet-ef database update -1
The text was updated successfully, but these errors were encountered: