Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade versions #132

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Config struct {
// StartTimeout: 15 Seconds
func DefaultConfig() Config {
return Config{
version: V15,
version: V16,
port: 5432,
database: "postgres",
username: "postgres",
Expand Down Expand Up @@ -147,11 +147,11 @@ type PostgresVersion string
// Predefined supported Postgres versions.
const (
V16 = PostgresVersion("16.2.0")
V15 = PostgresVersion("15.3.0")
V14 = PostgresVersion("14.8.0")
V15 = PostgresVersion("15.6.0")
V14 = PostgresVersion("14.11.0")
V13 = PostgresVersion("13.14.0")
V12 = PostgresVersion("12.15.0")
V11 = PostgresVersion("11.20.0")
V12 = PostgresVersion("12.17.0")
V11 = PostgresVersion("11.22.0")
V10 = PostgresVersion("10.23.0")
V9 = PostgresVersion("9.6.24")
)
6 changes: 3 additions & 3 deletions version_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v6", architecture)
assert.Equal(t, V15, postgresVersion)
assert.Equal(t, V16, postgresVersion)
}

func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
Expand All @@ -121,7 +121,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v7", architecture)
assert.Equal(t, V15, postgresVersion)
assert.Equal(t, V16, postgresVersion)
}

func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
Expand All @@ -139,7 +139,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "amd64-alpine", architecture)
assert.Equal(t, V15, postgresVersion)
assert.Equal(t, V16, postgresVersion)
}

func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {
Expand Down
Loading