Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rollback the upgrade by using dbmigrator update("0") fails [DNET687] #639

Closed
firebird-automations opened this issue Jun 29, 2016 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Leonard Wennekers (l.wennekers)

Attachments:
MigrationTest.zip

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)

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Without a code to reproduce it, I can't test it.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: Leonard Wennekers (l.wennekers)

All the files to run the test

@firebird-automations
Copy link
Author

Modified by: Leonard Wennekers (l.wennekers)

Attachment: MigrationTest.zip [ 13034 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 5.10.0.0 [ 10833 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants