-
Notifications
You must be signed in to change notification settings - Fork 53
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
The problem with applying migrations #180
Comments
I think i have similar issue. My error is :
I traced the issue to postgres server version. I'm running postgres in docker (i tried newest 12-buster and 13-buster versions). |
Any update on this ? |
@juszczukd the EF 6 (non-Core) provider is pretty much archived at this point - no efforts are going into it. I'd recommend against trying to use the EF 6 provider with newer versions of Npgsql, since those setups aren't being tested and may have various incompatibilities. |
Hi all, |
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 (IEnumerable
1 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)
The text was updated successfully, but these errors were encountered: