Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9141777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:41:24+00:00 2026-06-17T09:41:24+00:00

I am using EF Code First with Migrations. After i downgrade to a migration

  • 0

I am using EF Code First with Migrations.

After i downgrade to a migration version, should i delete all the others that has been created after that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:41:25+00:00Added an answer on June 17, 2026 at 9:41 am

    Deleting the forward-migrations will work just fine, if that’s what you’d like to do. The next time you run an add-migration, it will find what has changed in comparison to the now-current migration. One thing I can think of is that if you are working in a team, you’ll need to make sure everyone is on board with deleting the forward-migrations at the same time.

    When you downgrade, the “Down” method is ran in each of the forward-migrations, and also they are removed from the _MigrationHistory table.

    Alternatively, you could change your model back to what it was at your target migration and then do an add-migration – that will effectively revert your database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using EF 5RC, code first with migrations. I feel like this should be
I've been using Code-First Migrations Beta up until now and when migrating my database
I'm using EntityFramework code first with migrations. From the package manager console, I'm running
I'm using EF 4.3.1 Code First Migrations. I have a table like: public class
I'm using Code First with EF 5. Currently I have SPs that return just
I am using Code-First migrations. Now I want my application when published to a
I have an existing application with a SQL database that has been coded using
I am using EntityFramework 5 with Code First Migrations. What I want to be
I just got on board with EF 5 and am using their code-first migrations
I'm currently using EF Code First 4.3 with migrations enabled, but automatic migrations disabled.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.