Pull request #599: RED-6075 Added schema parameter to jdbc URL config

Merge in RED/persistence-service from kbudisantoso/RED-6075-main-db-schema to master

* commit 'ce79cf89407c30e31c13f624fa277db5cfa7d57e':
  RED-6075 Added schema parameter to jdbc URL config
This commit is contained in:
Kresnadi Budisantoso 2023-01-26 09:28:07 +01:00
commit 502d7a949d

View File

@ -84,7 +84,7 @@ multitenancy:
expireAfterAccess: 1
master:
datasource:
url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true
url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?currentSchema=${PSQL_SCHEMA:public}&cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true
driverClassName: org.postgresql.Driver
username: ${PSQL_USERNAME:redaction}
password: ${PSQL_PASSWORD:redaction}
@ -105,4 +105,4 @@ multitenancy:
prepStmtCacheSize: 1000
prepStmtCacheSqlLimit: 2048
liquibase:
changeLog: classpath:db/changelog/db.changelog-tenant.yaml
changeLog: classpath:db/changelog/db.changelog-tenant.yaml