Delete a specific EntityFramework Migration

c# ef-migrations entity-framework

Question

Is there a way to delete an automatic migration in the migration history of a project using Entity Framework Migrations? This is a code-based EF project that's has a mix of explicit and automatic updates. There is an automatic update that deletes a table of content and isn't necessary. I'd like to be able to just remove it.

For some reason, the database it's running against doesn't have a __MigrationHistory table. (At least I don't see it in the list of tables for the databases or the list of System Tables in the database. Not sure if you have to enable viewing those somehow or not inside SSMS).

Please offer any advice you have. I'm open to whatever solution as long as I can maintain all that application's data.

1
2
11/28/2012 7:40:22 PM

Accepted Answer

I hope it is not too late.

The __MigrationHistory table is made in System Tables section on Target Database(Same as base mode Database)

4
12/25/2012 6:09:22 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow