Skip to content

Commit 1aff302

Browse files
committed
Bump version to 8.0.4
Depend on Npgsql 8.0.3
1 parent f280bb7 commit 1aff302

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>8.0.3</VersionPrefix>
3+
<VersionPrefix>8.0.4</VersionPrefix>
44
<LangVersion>preview</LangVersion>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<AnalysisLevel>latest</AnalysisLevel>

Directory.Packages.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
3-
<EFCoreVersion>8.0.2</EFCoreVersion>
3+
<EFCoreVersion>8.0.4</EFCoreVersion>
44
<MicrosoftExtensionsVersion>8.0.0</MicrosoftExtensionsVersion>
5-
<NpgsqlVersion>8.0.2</NpgsqlVersion>
5+
<NpgsqlVersion>8.0.3</NpgsqlVersion>
66
</PropertyGroup>
77

88
<ItemGroup>

src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs

+2
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ public virtual void LoadUserDefinedTypeMappings(
362362
NpgsqlDataSource? dataSource)
363363
=> SetupEnumMappings(sqlGenerationHelper, dataSource);
364364

365+
#pragma warning disable NPG9001
365366
/// <summary>
366367
/// Gets all global enum mappings from the ADO.NET layer and creates mappings for them
367368
/// </summary>
@@ -407,6 +408,7 @@ is PropertyInfo globalEnumTypeMappingsProperty
407408
}
408409
}
409410
}
411+
#pragma warning restore NPG9001
410412

411413
/// <summary>
412414
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to

test/EFCore.PG.FunctionalTests/Migrations/MigrationsInfrastructureNpgsqlTest.cs

+20
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ public MigrationsInfrastructureNpgsqlTest(MigrationsInfrastructureNpgsqlFixture
1212
{
1313
}
1414

15+
// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
16+
public override void Can_apply_all_migrations()
17+
=> Assert.Throws<PostgresException>(() => base.Can_apply_all_migrations());
18+
19+
// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
20+
public override Task Can_apply_all_migrations_async()
21+
=> Assert.ThrowsAsync<PostgresException>(() => base.Can_apply_all_migrations_async());
22+
23+
// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
24+
public override void Can_apply_range_of_migrations()
25+
=> Assert.Throws<PostgresException>(() => base.Can_apply_range_of_migrations());
26+
27+
// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
28+
public override void Can_revert_all_migrations()
29+
=> Assert.Throws<PostgresException>(() => base.Can_revert_all_migrations());
30+
31+
// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
32+
public override void Can_revert_one_migrations()
33+
=> Assert.Throws<PostgresException>(() => base.Can_revert_one_migrations());
34+
1535
public override void Can_get_active_provider()
1636
{
1737
base.Can_get_active_provider();

test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs

+11
Original file line numberDiff line numberDiff line change
@@ -3234,6 +3234,17 @@ await Test(
32343234

32353235
#endregion PostgreSQL full-text search
32363236

3237+
[ConditionalFact]
3238+
public override async Task Add_required_primitve_collection_with_custom_default_value_sql_to_existing_table()
3239+
{
3240+
await base.Add_required_primitve_collection_with_custom_default_value_sql_to_existing_table_core("ARRAY[3, 2, 1]");
3241+
3242+
AssertSql(
3243+
"""
3244+
ALTER TABLE "Customers" ADD "Numbers" integer[] NOT NULL DEFAULT (ARRAY[3, 2, 1]);
3245+
""");
3246+
}
3247+
32373248
protected override string NonDefaultCollation
32383249
=> "POSIX";
32393250

0 commit comments

Comments
 (0)