update-database - column does not exist

asp.net-mvc, entity-framework

Solution

SOLUTION

use first: `Add-Migration InitialMigrations -IgnoreChanges` and then `update-database verbose`. This will work

Problem

When I tried to use `update-database -verbose -force`, I get an error: `ALTER TABLE DROP COLUMN failed because column 'countReferralsRegistrations' does not exist in table 'UserProfile'.` The problem is - I don't have (and I don't want to have) this column in model and also in table UserProfile. How can I resolve it?

Original source