Issue Details (XML | Word | Printable)

Key: DNET-687
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Leonard Wennekers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

rollback the upgrade by using dbmigrator update("0") fails

Created: 29/Jun/16 12:14 PM   Updated: 23/Aug/17 09:44 AM
Component/s: Entity Framework
Affects Version/s: 5.0.5.0
Fix Version/s: 5.10.0.0

File Attachments: 1. Zip Archive MigrationTest.zip (1.13 MB)

Environment: windows 7 / firebird 2.5.2 / ef 6.1.3


 Description  « Hide
The following exception occurred:

Test 'IOLAN.Context.Migration.UnitTests.UnitTestContextManagerFirebird.TestContextMigration' failed: System.InvalidCastException : Can't convert typee System.Data.Entity.Migrations.Model.DropTableOperation to System.Data.Entity.Migrations.Model.HistoryOperation.
bij FirebirdSql.Data.EntityFramework6.FbMigrationSqlGenerator.Generate(IEnumerable`1 migrationOperations, String providerManifestToken)
bij System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, VersionedModel targetModel, IEnumerable`1 operations, IEnumerable`1 systemOperations, Boolean downgrading, Boolean auto)
bij System.Data.Entity.Migrations.DbMigrator.RevertMigration(String migrationId, DbMigration migration, XDocument targetModel)
bij System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.RevertMigration(String migrationId, DbMigration migration, XDocument targetModel)
bij System.Data.Entity.Migrations.DbMigrator.Downgrade(IEnumerable`1 pendingMigrations)
bij System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Downgrade(IEnumerable`1 pendingMigrations)
bij System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
bij System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
bij System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 15/Nov/16 07:01 AM
Without a code to reproduce it, I can't test it.

Jiri Cincura made changes - 15/Nov/16 07:01 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Leonard Wennekers added a comment - 17/Nov/16 01:09 PM
All the files to run the test

Leonard Wennekers made changes - 17/Nov/16 01:09 PM
Attachment MigrationTest.zip [ 13034 ]
Jiri Cincura made changes - 23/Aug/17 09:44 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Fix Version/s 5.10.0.0 [ 10833 ]
Resolution Fixed [ 1 ]