Page 1 of 1
Code First Migrations - Upgrading to 7.0
Posted: Thu 31 May 2012 12:23
by ndroe
It appears that the index name behavior has changed when upgrading from 6.80 to 7.0. In the 6.80 version, index names were never quoted when added to the database. It appears that they are in 7.0. This makes migrations that run fine in 6.80 error in 7.0.
I didn't see anything about this in the release notes. Is this expected behavior?
Thanks,
Nathan
Re: Code First Migrations - Upgrading to 7.0
Posted: Thu 31 May 2012 14:32
by Shalex
Thank you for the remark. The behaviour change is the bug fix which was not mentioned in the release notes. We have to quote all identificators (including indexes) in a standard mode.
Re: Code First Migrations - Upgrading to 7.0
Posted: Thu 31 May 2012 16:02
by Shalex
You should edit your old code-based migrations (make old indexes names in UPPERCASE) for compatibility with the migrations which have been already applied to Oracle databases.
Re: Code First Migrations - Upgrading to 7.0
Posted: Thu 31 May 2012 16:41
by ndroe
We can't really do that for old code-based migrations that have already been executed against a database without throwing the database away and starting from scratch. It's not ok for me to ask all my developers to take the time to start their database over losing all the data that they've entered into it. Is there any other workaround for this?
Re: Code First Migrations - Upgrading to 7.0
Posted: Fri 01 Jun 2012 16:38
by Shalex
In the next public build we will implement the configuration option which will allow to set the mode of generating indexes without quotes for compatibility with Code-First Migrations that are generated and applied with the 6.x providers versions (enabling this option is not recommended for the newly created projects!). We will post here when the corresponding build of dotConnect for Oracle is available for download.
Re: Code First Migrations - Upgrading to 7.0
Posted: Tue 05 Jun 2012 13:09
by Shalex
The config.Workarounds.DisableIndexQuoting option is implemented for a backward compatibility with migrations which use indexes, generated and applied in the 6.xx versions. We will post here when the corresponding build of dotConnect for Oracle is available for download.
Re: Code First Migrations - Upgrading to 7.0
Posted: Fri 08 Jun 2012 15:54
by Shalex
New build of dotConnect for Oracle 7.0.17 is available for download!
It can be downloaded from
http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to
http://forums.devart.com/viewtopic.php?f=1&t=24290 .