Skip to content

Migration for a duplicated Project

nave

Asked Aug 27, 2013, 5:27 AM EDT1 answer
Share
LinkedInX
I have a web application project with local database (code first).

I duplicated the project and wanting to use the add-migration tool in order to continue development in the duplicated app.

after creating the new migration, on 'update-database'  i'm getting this error:
"Cannot insert the value NULL into column 'ContextKey', table 'mydb.dbo.__MigrationHistory'; column does not allow nulls. INSERT fails.
The statement has been terminated."

How can i continue using migration on my duplicated app?

Thanks

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • 0
      Any one?
      0