Andre Silveira

Andre Silveira

  • 1.6k
  • 155
  • 15.8k

Migration mess

Jan 26 2024 1:59 PM

I have a production .net core MVC website, but my hd broke and I lost the source code. My backup was a little bit outdated, and I made changes on the database that are not on the migrations of my backup project.

In the backup project I made a manual update of the models according to the changes on the database, adding the new fields to the models.

I'm not sure what to do now about the migrations...should I delete the migrations folder and all migrations on the project, and then do a new first migration? What would be the best strategy to save my MVC app database integration? The project is running, but I need to add a new table...


Answers (1)