Skip to content

Commit cc8393d

Browse files
author
Bart Koelman
committed
higher postgres
1 parent 871385b commit cc8393d

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
# APPVEYOR_SSH_KEY: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAk6FFxFgYOdnm3Xphj9iMRpJS4JwpB/OnNhcq124IuLiSml49fYjdw316ytXpYn74tMbLOsc/iySGR+gNbgw53U6x970rMEFb3P1mod5C6P5vIdbqO7ygTSJnxOfRwuge4jZTHCgJQ6di9GeWb5IY8FN2yrEnFND0HDQJsGYCaJ6SVj6vbOqdPVd764Iuaog20WAGL1LqPUnL7ONKZh9T57/E9yObwNbCcrYm/jFoVNyCrE1gR8OcUuyV2Zih4aQUtpL4vdLzQASpyUJAlLXBjX8SlOv/mbJ/zPTNZ2BElrUt/BK7T6plqiTYtdiix8qPuQWMx6S0h9We8/DjAhlSgQ==
99
PGUSER: postgres
1010
PGPASSWORD: Password12!
11-
ACCESS_TOKEN:
11+
GIT_ACCESS_TOKEN:
1212
secure: g1T332Uarmdgtkftchpafa8tDP/7eM4O0BD6iu1wu+zR224IyH5R8pb4sTChr4Ia
1313

1414
#init:
@@ -37,7 +37,7 @@ for:
3737
only:
3838
- image: Visual Studio 2019
3939
services:
40-
- postgresql96
40+
- postgresql101
4141

4242
stack: postgresql
4343

@@ -63,7 +63,7 @@ after_build:
6363
}
6464
6565
git config --global credential.helper store
66-
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:ACCESS_TOKEN):x-oauth-basic@github.com`n"
66+
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GIT_ACCESS_TOKEN):x-oauth-basic@github.com`n"
6767
git config --global user.email "jaredcnance@gmail.com"
6868
git config --global user.name "Jared Nance"
6969
git config --global core.autocrlf false

src/Examples/JsonApiDotNetCoreExample/Startups/Startup.cs

Lines changed: 1 addition & 2 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)
@@ -30,7 +29,7 @@ public override void ConfigureServices(IServiceCollection services)
3029
services.AddDbContext<AppDbContext>(options =>
3130
{
3231
options.EnableSensitiveDataLogging();
33-
options.UseNpgsql(_connectionString, postgresOptions => postgresOptions.SetPostgresVersion(PostgresCiBuildVersion));
32+
options.UseNpgsql(_connectionString);
3433
});
3534

3635
services.AddJsonApi<AppDbContext>(ConfigureJsonApiOptions, discovery => discovery.AddCurrentAssembly());

src/Examples/NoEntityFrameworkExample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
3131

3232
services.AddDbContext<AppDbContext>(options =>
3333
{
34-
options.UseNpgsql(_connectionString, postgresOptions => postgresOptions.SetPostgresVersion(new Version(9, 6)));
34+
options.UseNpgsql(_connectionString);
3535
});
3636
}
3737

test/TestBuildingBlocks/BaseIntegrationTestContext.cs

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

7272
services.AddDbContext<TDbContext>(options =>
7373
{
74-
options.UseNpgsql(dbConnectionString, postgresOptions => postgresOptions.SetPostgresVersion(new Version(9, 6)));
74+
options.UseNpgsql(dbConnectionString);
7575

7676
options.EnableSensitiveDataLogging();
7777
options.EnableDetailedErrors();

0 commit comments

Comments
 (0)