fix(storage): postgresql default port incorrect (#4251)
This fixes a typo with the default port for PostgreSQL in 4.37. Fixes #4249pull/4252/head
parent
745459edd7
commit
53c1b645ee
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue