Base solution for your next web application
Open Closed

Migration issue after upgrade to latest version #11720


User avatar
0
mayankm created

We've upgraded to latest version and then while merging the code, it got conflicts in DbContextModelSnapshot file.

When I run Update-Database, it says all up to date.

When I add migration to make further changes in DB, it throws below error and shows all previous migration changes in migration file along with DbContextModelSnapshot file.

What's the process to fix this migration issue?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mayankm

    The original User class doesn't have an Address field, I assume you have added it. So, you might mixed up your migrations. You can delete the creation of Address field from the last created migration file.