rollback the upgrade by using dbmigrator update("0") fails
----------------------------------------------------------
Key: DNET-687
URL: http://tracker.firebirdsql.org/browse/DNET-687
Project: .NET Data provider
Issue Type: Bug
Components: Entity Framework support
Affects Versions: 5.0.5.0
Environment: windows 7 / firebird 2.5.2 / ef 6.1.3
Reporter: Leonard Wennekers
Assignee: Jiri Cincura
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider