diff --git a/Directory.Build.props b/Directory.Build.props index 85e02f48e..3b59773ae 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 8.0.3 + 8.0.4 preview true latest diff --git a/Directory.Packages.props b/Directory.Packages.props index b66627455..35f639e1f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,8 +1,8 @@ - 8.0.2 + 8.0.4 8.0.0 - 8.0.2 + 8.0.3 diff --git a/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs b/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs index 3c9baa486..00b27afab 100644 --- a/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs +++ b/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs @@ -362,6 +362,7 @@ public virtual void LoadUserDefinedTypeMappings( NpgsqlDataSource? dataSource) => SetupEnumMappings(sqlGenerationHelper, dataSource); +#pragma warning disable NPG9001 /// /// Gets all global enum mappings from the ADO.NET layer and creates mappings for them /// @@ -407,6 +408,7 @@ is PropertyInfo globalEnumTypeMappingsProperty } } } +#pragma warning restore NPG9001 /// /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to diff --git a/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs b/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs index 96e931e30..fc36489ae 100644 --- a/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs +++ b/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs @@ -3234,6 +3234,17 @@ await Test( #endregion PostgreSQL full-text search + [ConditionalFact] + public override async Task Add_required_primitve_collection_with_custom_default_value_sql_to_existing_table() + { + await base.Add_required_primitve_collection_with_custom_default_value_sql_to_existing_table_core("ARRAY[3, 2, 1]"); + + AssertSql( + """ +ALTER TABLE "Customers" ADD "Numbers" integer[] NOT NULL DEFAULT (ARRAY[3, 2, 1]); +"""); + } + protected override string NonDefaultCollation => "POSIX";