Skip to content

Commit 8db11c0

Browse files
authored
Merge pull request #89 from topcoder-platform/dev
Prod - DB Schema support
2 parents bcf31ce + 3398c4a commit 8db11c0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
defaults: &defaults
33
docker:
4-
- image: cimg/python:3.11.7-browsers
4+
- image: cimg/node:18.20.4
55
install_dependency: &install_dependency
66
name: Installation of build and deployment dependencies.
77
command: |
@@ -79,7 +79,7 @@ workflows:
7979
context: org-global
8080
filters:
8181
branches:
82-
only: ["dev", "feature/decouple-sendgridtemplateid"]
82+
only: ["dev", "feature/decouple-sendgridtemplateid", "db_schema"]
8383
- "build-prod":
8484
context: org-global
8585
filters:

config/default.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ module.exports = {
1111
dialect: 'postgres',
1212
logging: false,
1313
dialectOptions: {
14-
ssl: process.env.DATABASE_SSL != null
14+
ssl: process.env.DATABASE_SSL != null,
15+
prependSearchPath: true
1516
},
1617
pool: {
1718
max: 5,
1819
min: 0,
1920
idle: 10000
20-
}
21+
},
22+
schema: process.env.DATABASE_SCHEMA,
23+
searchPath: process.env.DATABASE_SCHEMA,
2124
},
2225
DISABLE_LOGGING: process.env.DISABLE_LOGGING || 'false',
2326

0 commit comments

Comments
 (0)