Reputation: 157
I did a beginner mistake and deleted a table. I had to research how to recover it and was successful in doing so. But now my migrations are not working for that table. It just stays as the initial migration but the ApplicationDBContextModelSnapshot
has the information I need to migrate to that table.
I have tried doing the update-database
command to the specific migration and it says it's successful but no changes were made to that table. Same with doing a small change to the entity so I can execute an add-migration
. The builds were successful but no changes were made.
I guess what I'm hoping for is syncing the Model Snapshot to my database and update that recovered table to the current state.
Upvotes: 0
Views: 563
Reputation: 157
Solved it by removing the docker volumes then ran the update database command. Everything is synced now.
Upvotes: 1