Page 1 of 1

Model generated in __MigrationHistory is different for different database names, always

Posted: Mon 23 Dec 2013 22:34
by la2texas
Doing some initial testing with dotConnect migrations in team environment, different databases, different branches, etc...

Setup: branch 1 and branch 2 identical
Branch 1 add-migration Initial
Update-Database

Merge branch 1 into branch 2
Update-database
Cannot update because there are model differences.

See this stack overflow post:
http://stackoverflow.com/questions/2075 ... 7_20751031

I have decompressed the stored Model from the DB into its EDMX and in fact the Schema is stored - this will always result in "model" changes when switches databases even though model changes did not occur. I have set the following:

var config = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance;
config.Workarounds.IgnoreDboSchemaName = true;
config.Workarounds.IgnoreSchemaName = true;

Are there any workarounds for this?

Re: Model generated in __MigrationHistory is different for different database names, always

Posted: Tue 24 Dec 2013 14:34
by Shalex
Thank you for sharing solution.