Skip to content

Addition to Remove migration section - Update database before removing applied migration #4266

Closed

Description

@PeterOeClausen

Under the Remove a migration section, perhaps you should add, that in order to remove an applied migration, you should update your database to the previous good migration, before you can remove latest migration. This is better instead of just saying: "Warning: Avoid removing any migrations which have already been applied to production databases.".

If you're new to EF, you may think that you need to reset your migrations if you made a mistake, which is not true :-)

Thanks for your time.


Document Details

⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Activity

  1. added this to the Backlog milestone on Mar 18, 2023
  2. added a commit that references this issue on Aug 11, 2026
    bb42937
  3. modified the milestones: Backlog, 11.0.0 on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions