File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
JsonApiDotNetCoreExample/Startups Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ environment:
8
8
# APPVEYOR_SSH_KEY: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAk6FFxFgYOdnm3Xphj9iMRpJS4JwpB/OnNhcq124IuLiSml49fYjdw316ytXpYn74tMbLOsc/iySGR+gNbgw53U6x970rMEFb3P1mod5C6P5vIdbqO7ygTSJnxOfRwuge4jZTHCgJQ6di9GeWb5IY8FN2yrEnFND0HDQJsGYCaJ6SVj6vbOqdPVd764Iuaog20WAGL1LqPUnL7ONKZh9T57/E9yObwNbCcrYm/jFoVNyCrE1gR8OcUuyV2Zih4aQUtpL4vdLzQASpyUJAlLXBjX8SlOv/mbJ/zPTNZ2BElrUt/BK7T6plqiTYtdiix8qPuQWMx6S0h9We8/DjAhlSgQ==
9
9
PGUSER : postgres
10
10
PGPASSWORD : Password12!
11
- ACCESS_TOKEN :
11
+ GIT_ACCESS_TOKEN :
12
12
secure : g1T332Uarmdgtkftchpafa8tDP/7eM4O0BD6iu1wu+zR224IyH5R8pb4sTChr4Ia
13
13
14
14
# init:
37
37
only :
38
38
- image : Visual Studio 2019
39
39
services :
40
- - postgresql96
40
+ - postgresql101
41
41
42
42
stack : postgresql
43
43
@@ -63,7 +63,7 @@ after_build:
63
63
}
64
64
65
65
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"
67
67
git config --global user.email "jaredcnance@gmail.com"
68
68
git config --global user.name "Jared Nance"
69
69
git config --global core.autocrlf false
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ namespace JsonApiDotNetCoreExample.Startups
14
14
{
15
15
public sealed class Startup : EmptyStartup
16
16
{
17
- private static readonly Version PostgresCiBuildVersion = new Version ( 9 , 6 ) ;
18
17
private readonly string _connectionString ;
19
18
20
19
public Startup ( IConfiguration configuration )
@@ -30,7 +29,7 @@ public override void ConfigureServices(IServiceCollection services)
30
29
services . AddDbContext < AppDbContext > ( options =>
31
30
{
32
31
options . EnableSensitiveDataLogging ( ) ;
33
- options . UseNpgsql ( _connectionString , postgresOptions => postgresOptions . SetPostgresVersion ( PostgresCiBuildVersion ) ) ;
32
+ options . UseNpgsql ( _connectionString ) ;
34
33
} ) ;
35
34
36
35
services . AddJsonApi < AppDbContext > ( ConfigureJsonApiOptions , discovery => discovery . AddCurrentAssembly ( ) ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
31
31
32
32
services . AddDbContext < AppDbContext > ( options =>
33
33
{
34
- options . UseNpgsql ( _connectionString , postgresOptions => postgresOptions . SetPostgresVersion ( new Version ( 9 , 6 ) ) ) ;
34
+ options . UseNpgsql ( _connectionString ) ;
35
35
} ) ;
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ private WebApplicationFactory<TRemoteStartup> CreateFactory()
71
71
72
72
services . AddDbContext < TDbContext > ( options =>
73
73
{
74
- options . UseNpgsql ( dbConnectionString , postgresOptions => postgresOptions . SetPostgresVersion ( new Version ( 9 , 6 ) ) ) ;
74
+ options . UseNpgsql ( dbConnectionString ) ;
75
75
76
76
options . EnableSensitiveDataLogging ( ) ;
77
77
options . EnableDetailedErrors ( ) ;
You can’t perform that action at this time.
0 commit comments