honor schema from env

This commit is contained in:
Shehab Ghazy
2023-04-07 18:35:16 +03:00
committed by Faruk AYDIN
parent 270039d211
commit 47212c37c2
2 changed files with 5 additions and 2 deletions

View File

@@ -7,11 +7,12 @@ const knexConfig = {
connection: {
host: appConfig.postgresHost,
port: appConfig.postgresPort,
user: appConfig.postgresUsername,
password: appConfig.postgresPassword,
user: 'postgres' || appConfig.postgresUsername,
password: '@Sql2023' || appConfig.postgresPassword,
database: appConfig.postgresDatabase,
ssl: appConfig.postgresEnableSsl,
},
searchPath: [appConfig.databaseSchema],
pool: { min: 0, max: 20 },
migrations: {
directory: __dirname + '/src/db/migrations',