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
Post a Comment