You might get this error while doing update-database -verbose via Package Manager Console:
1 2 3 |
No pending code-based migrations. Applying automatic migration: 201310081433521_AutomaticMigration. Automatic migration was not applied because it would result in data loss. |
This error happens when your data model is not in synch with your database. There are two ways to fix this: The first approach is by adding/deleting the columns that you added/dropped manually to your table and then re-running update-database again. […]