Ok so a bit of background how I got here. I am rebuilding an old MVC3 site. I had a recent Database First MVC5 EF6 project with the same UI package that I wanted to use. I copied the existing project and ripped almost everything out of it (all project specific POCO Models, DbContext, Views etc) basically I just left the new Identity stuff in there along with my UI Framework.
I created scripts to manually convert my database from SQLMembership to Identity 2.0 (and a little bit of code for password conversion). Everything was going fine, it compiled, I could log in as an existing user.
Next step, I created a new temp Project (I didn't want to mess up the actual project namespaces), generated the POCO Models from the new database for all the existing tables, copied them across to my project and have just manually written the DataModel Fluent API code. I had a few validation errors on model generation which I fixed no problem. But now I get an exception error when trying to do anything that would access the DataModel that __MigrationHistory already exists.
Further investigation looking at the EF SQL debug output shows it is trying to run scripts to create all the tables in my database, it finally throws an error when it tries to create the __MigrationHistory table since it already exists (though I should note it has no records).
So what am I doing differently? How does EF know not to try to do this in my other project which works fine, and in terms of DataModel structure and POCO Model structure is the same as my new project? What should I do to fix it? I know I could make my own initialiser (How can I disable the use of the __MigrationHistory table in Entity Framework 4.3 Code First?) but I'd prefer to understand what is going on and fix at the source rather than code around it.