fix(storage): postgresql default port incorrect (#4251)

This fixes a typo with the default port for PostgreSQL in 4.37.

Fixes #4249
pull/4252/head
James Elliott 2022-10-24 06:09:38 +11:00 committed by GitHub
parent 745459edd7
commit 53c1b645ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration (
scopes TEXT NOT NULL, scopes TEXT NOT NULL,
audience TEXT NULL, audience TEXT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey CONSTRAINT oauth2_consent_preconfiguration_subject_fkey
FOREIGN KEY(subject) FOREIGN KEY(subject)
REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT
); );

View File

@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration (
scopes TEXT NOT NULL, scopes TEXT NOT NULL,
audience TEXT NULL, audience TEXT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey CONSTRAINT oauth2_consent_preconfiguration_subject_fkey
FOREIGN KEY(subject) FOREIGN KEY(subject)
REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT
); );

View File

@ -8,7 +8,7 @@ CREATE TABLE oauth2_consent_preconfiguration (
scopes TEXT NOT NULL, scopes TEXT NOT NULL,
audience TEXT NULL, audience TEXT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
CONSTRAINT oauth2_consent_preconfiguration_subjct_fkey CONSTRAINT oauth2_consent_preconfiguration_subject_fkey
FOREIGN KEY(subject) FOREIGN KEY(subject)
REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT
); );

View File

@ -148,7 +148,7 @@ func dsnPostgreSQL(config *schema.PostgreSQLStorageConfiguration, globalCACertPo
} }
if dsnConfig.Port == 0 && !path.IsAbs(dsnConfig.Host) { if dsnConfig.Port == 0 && !path.IsAbs(dsnConfig.Host) {
dsnConfig.Port = 4321 dsnConfig.Port = 5432
} }
return stdlib.RegisterConnConfig(dsnConfig) return stdlib.RegisterConnConfig(dsnConfig)