Skip to content

Commit 8b69a32

Browse files
author
Bart Koelman
committed
Use higher postgres version on cibuild
1 parent b4dcebe commit 8b69a32

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

appveyor.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ branches:
5858
nuget:
5959
disable_publish_on_pr: true
6060

61-
init:
62-
- SET PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
63-
64-
services:
65-
- postgresql96
61+
services:
62+
- postgresql101
6663

6764
build_script:
6865
- pwsh: dotnet --version

src/Examples/JsonApiDotNetCoreExample/Startups/Startup.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace JsonApiDotNetCoreExample.Startups
1414
{
1515
public sealed class Startup : EmptyStartup
1616
{
17-
private static readonly Version PostgresCiBuildVersion = new Version(9, 6);
1817
private readonly string _connectionString;
1918

2019
public Startup(IConfiguration configuration)
@@ -27,11 +26,7 @@ public override void ConfigureServices(IServiceCollection services)
2726
{
2827
services.AddSingleton<ISystemClock, SystemClock>();
2928

30-
services.AddDbContext<AppDbContext>(options =>
31-
{
32-
options.EnableSensitiveDataLogging();
33-
options.UseNpgsql(_connectionString, postgresOptions => postgresOptions.SetPostgresVersion(PostgresCiBuildVersion));
34-
});
29+
services.AddDbContext<AppDbContext>(options => options.UseNpgsql(_connectionString));
3530

3631
services.AddJsonApi<AppDbContext>(ConfigureJsonApiOptions, discovery => discovery.AddCurrentAssembly());
3732
}

src/Examples/NoEntityFrameworkExample/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ public void ConfigureServices(IServiceCollection services)
2929

3030
services.AddScoped<IResourceService<WorkItem>, WorkItemService>();
3131

32-
services.AddDbContext<AppDbContext>(options =>
33-
{
34-
options.UseNpgsql(_connectionString, postgresOptions => postgresOptions.SetPostgresVersion(new Version(9, 6)));
35-
});
32+
services.AddDbContext<AppDbContext>(options => options.UseNpgsql(_connectionString));
3633
}
3734

3835
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

test/TestBuildingBlocks/BaseIntegrationTestContext.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ private WebApplicationFactory<TRemoteStartup> CreateFactory()
7171

7272
services.AddDbContext<TDbContext>(options =>
7373
{
74-
options.UseNpgsql(dbConnectionString, postgresOptions => postgresOptions.SetPostgresVersion(new Version(9, 6)));
75-
74+
options.UseNpgsql(dbConnectionString);
7675
options.EnableSensitiveDataLogging();
7776
options.EnableDetailedErrors();
7877
});

0 commit comments

Comments
 (0)