asp.net - Entity Framework attempting to perform a migration when one is not needed -


i have asp.net mvc web application database built using code first entity framework. made small front-end validation updates application, deployed test environment no issues. on deploying same application live environment application fails "automatic migration not applied because result in data loss." error.

i didn't create migrations part of update, nor have migrations been created since application's last deployment either test or live environments - migrationhistory table in each database lists of migrations have been performed far, no migrations outstanding. brought copy of live database down onto development machine testing purposes, error not occur there when using live database same code says needs migrated.

i have couple of questions - know circumstances cause kind of issue, , there way resolve without affecting content of live database?


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -