Skip to content

Commit da294ad

Browse files
authored
Merge pull request #812 from topcoder-platform/db_schema
DB schema config parameter
2 parents d9d9cd4 + aa20437 commit da294ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/custom-environment-variables.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"dbConfig": {
3131
"masterUrl": "DB_MASTER_URL",
3232
"maxPoolSize": "DB_MAX_POOL_SIZE",
33-
"minPoolSize": "DB_MIN_POOL_SIZE"
33+
"minPoolSize": "DB_MIN_POOL_SIZE",
34+
"schema": "DB_SCHEMA_NAME"
3435
},
3536
"kafkaConfig": {
3637
"groupId": "KAFKA_GROUP_ID",

src/models/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const operatorsAliases = {
2929

3030
const sequelize = new Sequelize(config.get('dbConfig.masterUrl'), {
3131
operatorsAliases,
32+
schema: config.get('dbConfig.schema'),
3233
logging: false,
3334
dialectOptions: {
3435
ssl: false,

0 commit comments

Comments
 (0)