Skip to content

Commit

Permalink
Bump version to 8.0.4
Browse files Browse the repository at this point in the history
Depend on Npgsql 8.0.3
  • Loading branch information
roji committed May 11, 2024
1 parent f280bb7 commit 1aff302
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>8.0.3</VersionPrefix>
<VersionPrefix>8.0.4</VersionPrefix>
<LangVersion>preview</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AnalysisLevel>latest</AnalysisLevel>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<EFCoreVersion>8.0.2</EFCoreVersion>
<EFCoreVersion>8.0.4</EFCoreVersion>
<MicrosoftExtensionsVersion>8.0.0</MicrosoftExtensionsVersion>
<NpgsqlVersion>8.0.2</NpgsqlVersion>
<NpgsqlVersion>8.0.3</NpgsqlVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ static NpgsqlTypeMappingSource()
NpgsqlDataSource? dataSource)
=> SetupEnumMappings(sqlGenerationHelper, dataSource);

#pragma warning disable NPG9001
/// <summary>
/// Gets all global enum mappings from the ADO.NET layer and creates mappings for them
/// </summary>
Expand Down Expand Up @@ -407,6 +408,7 @@ protected virtual void SetupEnumMappings(ISqlGenerationHelper sqlGenerationHelpe
}
}
}
#pragma warning restore NPG9001

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ public MigrationsInfrastructureNpgsqlTest(MigrationsInfrastructureNpgsqlFixture
{
}

// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
public override void Can_apply_all_migrations()
=> Assert.Throws<PostgresException>(() => base.Can_apply_all_migrations());

// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
public override Task Can_apply_all_migrations_async()
=> Assert.ThrowsAsync<PostgresException>(() => base.Can_apply_all_migrations_async());

// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
public override void Can_apply_range_of_migrations()
=> Assert.Throws<PostgresException>(() => base.Can_apply_range_of_migrations());

// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
public override void Can_revert_all_migrations()
=> Assert.Throws<PostgresException>(() => base.Can_revert_all_migrations());

// https://github.com/dotnet/efcore/pull/33404/files#r1597462604
public override void Can_revert_one_migrations()
=> Assert.Throws<PostgresException>(() => base.Can_revert_one_migrations());

public override void Can_get_active_provider()
{
base.Can_get_active_provider();
Expand Down
11 changes: 11 additions & 0 deletions test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,17 @@ public virtual async Task Alter_column_generated_tsvector_change_config()

#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";

Expand Down

0 comments on commit 1aff302

Please sign in to comment.