Description
After upgrading the npgsql package to version 6.0.0, EF6 migrations to postgresql 12 are not applied.
When downgrading to version 5.0.11, the problem does not occur.
Trace stack when applying migration:
Applying explicit migrations: [202112070713125_pk_Initialization].
Applying explicit migration: 202112070713125_pk_Initialization.
System.FormatException: The input string was not in the correct format.
at System.Version.VersionResult.SetFailure (ParseFailureKind failure, String argument)
at System.Version.TryParseComponent (String component, String componentName, VersionResult & result, Int32 & parsedComponent)
at System.Version.TryParseVersion (String version, VersionResult & result)
at System.Version.Parse (String input)
at System.Version..ctor (String version)
at Npgsql.NpgsqlMigrationSqlGenerator.Generate (IEnumerable1 migrationOperations, String providerManifestToken) at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations (String migrationId, VersionedModel targetModel, IEnumerable
1 operations, IEnumerable1 systemOperations, Boolean downgrading, Boolean auto) at System.Data.Entity.Migrations.DbMigrator.ApplyMigration (DbMigration migration, DbMigration lastMigration) at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ApplyMigration (DbMigration migration, DbMigration lastMigration) at System.Data.Entity.Migrations.DbMigrator.Upgrade (IEnumerable
1 pendingMigrations, String targetMigrationId, String lastMigrationId)
at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade (IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal (String targetMigration)
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists (Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.DbMigrator.Update (String targetMigration)
at System.Data.Entity.Infrastructure.Design.Executor.Update. <> c__DisplayClass0_0. <. ctor> b__0 ()
at System.Data.Entity.Infrastructure.Design.Executor.OperationBase.Execute (Action action)