Skip to content

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

@snebjorn

Description

@snebjorn

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

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions