mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Merge pull request #6007 from kabaros/pg-pool-settings
Preserve pool setttings when there is a schema
This commit is contained in:
commit
9414eb717b
@ -178,8 +178,7 @@ module.exports = strapi => {
|
||||
|
||||
if (_.isString(_.get(options.connection, 'schema'))) {
|
||||
options.pool = {
|
||||
min: _.get(connection.options, 'pool.min') || 0,
|
||||
max: _.get(connection.options, 'pool.max') || 10,
|
||||
...options.pool,
|
||||
afterCreate: (conn, cb) => {
|
||||
conn.query(
|
||||
`SET SESSION SCHEMA '${options.connection.schema}';`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user