diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-10-24 06:09:38 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-24 06:09:38 +1100 |
| commit | 53c1b645eeaaa5213a500b6e1ec58da0e081f386 (patch) | |
| tree | d2be47b5b1e9568b8699648a8e2f5ea8f1168092 /internal/storage | |
| parent | 745459edd7c9523b9abad7d7c652fcb53d46eba3 (diff) | |
fix(storage): postgresql default port incorrect (#4251)
This fixes a typo with the default port for PostgreSQL in 4.37.
Fixes #4249
Diffstat (limited to 'internal/storage')
4 files changed, 4 insertions, 4 deletions
diff --git a/internal/storage/migrations/V0006.ConsentPreConfiguration.mysql.up.sql b/internal/storage/migrations/V0006.ConsentPreConfiguration.mysql.up.sql index 693b0ed91..a74a42fb9 100644 --- a/internal/storage/migrations/V0006.ConsentPreConfiguration.mysql.up.sql +++ b/internal/storage/migrations/V0006.ConsentPreConfiguration.mysql.up.sql @@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration ( scopes TEXT NOT NULL, audience TEXT NULL, PRIMARY KEY (id), - CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey + CONSTRAINT oauth2_consent_preconfiguration_subject_fkey FOREIGN KEY(subject) REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT ); diff --git a/internal/storage/migrations/V0006.ConsentPreConfiguration.postgres.up.sql b/internal/storage/migrations/V0006.ConsentPreConfiguration.postgres.up.sql index 71a98616f..964ddd3d9 100644 --- a/internal/storage/migrations/V0006.ConsentPreConfiguration.postgres.up.sql +++ b/internal/storage/migrations/V0006.ConsentPreConfiguration.postgres.up.sql @@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration ( scopes TEXT NOT NULL, audience TEXT NULL, PRIMARY KEY (id), - CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey + CONSTRAINT oauth2_consent_preconfiguration_subject_fkey FOREIGN KEY(subject) REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT ); diff --git a/internal/storage/migrations/V0006.ConsentPreConfiguration.sqlite.up.sql b/internal/storage/migrations/V0006.ConsentPreConfiguration.sqlite.up.sql index a491e82df..3f1bccef3 100644 --- a/internal/storage/migrations/V0006.ConsentPreConfiguration.sqlite.up.sql +++ b/internal/storage/migrations/V0006.ConsentPreConfiguration.sqlite.up.sql @@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration ( scopes TEXT NOT NULL, audience TEXT NULL, PRIMARY KEY (id), - CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey + CONSTRAINT oauth2_consent_preconfiguration_subject_fkey FOREIGN KEY(subject) REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT ); diff --git a/internal/storage/sql_provider_backend_postgres.go b/internal/storage/sql_provider_backend_postgres.go index 19a14f351..e8834db44 100644 --- a/internal/storage/sql_provider_backend_postgres.go +++ b/internal/storage/sql_provider_backend_postgres.go @@ -148,7 +148,7 @@ func dsnPostgreSQL(config *schema.PostgreSQLStorageConfiguration, globalCACertPo } if dsnConfig.Port == 0 && !path.IsAbs(dsnConfig.Host) { - dsnConfig.Port = 4321 + dsnConfig.Port = 5432 } return stdlib.RegisterConnConfig(dsnConfig) |
