entity framework - Rollback to a specific migration -


what steps rolling specific migration state.

i want remove field url....so ran command below.

update-database –targetmigration: addurl

the column name on db table removed added when ran application.

do manually remove '201504212002469_addurl' file under migrations folder , else added?

you don't need delete records __migrationhistory.

just roll previous migration. if have 2 migrations:

201504212002468_something 201504212002469_addurl 

run

update-database --targetmigration:something 

after can remove 201504212002469_addurl.cs , other related files project.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -