diff --git a/.circleci/config.yml b/.circleci/config.yml index cb536eb..f5c5aca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2 defaults: &defaults docker: - - image: cimg/python:3.11.7-browsers + - image: cimg/node:18.20.4 install_dependency: &install_dependency name: Installation of build and deployment dependencies. command: | @@ -79,7 +79,7 @@ workflows: context: org-global filters: branches: - only: ["dev", "feature/decouple-sendgridtemplateid"] + only: ["dev", "feature/decouple-sendgridtemplateid", "db_schema"] - "build-prod": context: org-global filters: diff --git a/config/default.js b/config/default.js index 9286c5d..b7ed244 100644 --- a/config/default.js +++ b/config/default.js @@ -11,13 +11,16 @@ module.exports = { dialect: 'postgres', logging: false, dialectOptions: { - ssl: process.env.DATABASE_SSL != null + ssl: process.env.DATABASE_SSL != null, + prependSearchPath: true }, pool: { max: 5, min: 0, idle: 10000 - } + }, + schema: process.env.DATABASE_SCHEMA, + searchPath: process.env.DATABASE_SCHEMA, }, DISABLE_LOGGING: process.env.DISABLE_LOGGING || 'false',