feat: Add postgres schema environment variable (#1047)

feat: Add postgres schema environment variable

---------

Co-authored-by: Faruk AYDIN <omerfaruk26@gmail.com>
This commit is contained in:
Shehab Ghazy
2023-04-17 15:56:12 +03:00
committed by GitHub
parent 270039d211
commit 18d07dd3b9
3 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ const knexConfig = {
database: appConfig.postgresDatabase,
ssl: appConfig.postgresEnableSsl,
},
searchPath: [appConfig.postgresSchema],
pool: { min: 0, max: 20 },
migrations: {
directory: __dirname + '/src/db/migrations',