From 3c0553510ec0e9051e9fed7fbe10001c285f67ca Mon Sep 17 00:00:00 2001 From: Felix Hoffmann <19827840+zzzFelix@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:03:07 +0100 Subject: [PATCH] Add V16 constant (#129) --- README.md | 2 +- config.go | 3 ++- platform-test/platform_test.go | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3c70c6..5fa28f8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ This library aims to require as little configuration as possible, favouring over | Username | postgres | | Password | postgres | | Database | postgres | -| Version | 12.1.0 | +| Version | 15.3.0 | | CachePath | $USER_HOME/.embedded-postgres-go/ | | RuntimePath | $USER_HOME/.embedded-postgres-go/extracted | | DataPath | $USER_HOME/.embedded-postgres-go/extracted/data | diff --git a/config.go b/config.go index 8f73a33..3d96ebd 100644 --- a/config.go +++ b/config.go @@ -27,7 +27,7 @@ type Config struct { // DefaultConfig provides a default set of configuration to be used "as is" or modified using the provided builders. // The following can be assumed as defaults: -// Version: 14 +// Version: 15 // Port: 5432 // Database: postgres // Username: postgres @@ -146,6 +146,7 @@ type PostgresVersion string // Predefined supported Postgres versions. const ( + V16 = PostgresVersion("16.2.0") V15 = PostgresVersion("15.3.0") V14 = PostgresVersion("14.8.0") V13 = PostgresVersion("13.11.0") diff --git a/platform-test/platform_test.go b/platform-test/platform_test.go index 07b4b89..42addc0 100644 --- a/platform-test/platform_test.go +++ b/platform-test/platform_test.go @@ -14,6 +14,7 @@ import ( func Test_AllMajorVersions(t *testing.T) { allVersions := []embeddedpostgres.PostgresVersion{ + embeddedpostgres.V16, embeddedpostgres.V15, embeddedpostgres.V14, }