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

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
la2texas
Posts: 10
Joined: Wed 18 Dec 2013 05:56

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

Post by la2texas » Mon 23 Dec 2013 22:34

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?

Shalex
Devart Team
Posts: 8088
Joined: Thu 14 Aug 2008 12:44

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

Post by Shalex » Tue 24 Dec 2013 14:34

Thank you for sharing solution.

Post Reply