Skip to content

Commit

Permalink
Remove deprecated setting from sequelize conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 committed Jul 19, 2019
1 parent 4ed4fa9 commit 95f0de7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions services/backend/oodikone2-backend/src/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ const conf = require('../conf-backend')
const sequelize = new Sequelize(conf.DB_URL, {
schema: conf.DB_SCHEMA,
searchPath: conf.DB_SCHEMA,
logging: false,
operatorsAliases: false
logging: false
})
sequelize.query(`SET SESSION search_path to ${conf.DB_SCHEMA}`)

const sequelizeKone = new Sequelize(conf.DB_URL_KONE, {
schema: conf.DB_SCHEMA_KONE,
searchPath: conf.DB_SCHEMA_KONE,
logging: false,
operatorsAliases: false
logging: false
})
sequelizeKone.query(`SET SESSION search_path to ${conf.DB_SCHEMA_KONE}`)

Expand Down
3 changes: 1 addition & 2 deletions services/oodikone2-analytics/src/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const conf = require('../conf')

const sequelize = new Sequelize(conf.DB_URL, {
schema: conf.DB_SCHEMA,
logging: false,
operatorsAliases: false
logging: false
})
const runMigrations = async () => {
try {
Expand Down
3 changes: 1 addition & 2 deletions services/oodikone2-userservice/src/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const conf = require('../conf')

const sequelize = new Sequelize(conf.DB_URL, {
schema: conf.DB_SCHEMA,
logging: false,
operatorsAliases: false
logging: false
})
const runMigrations = async () => {
try {
Expand Down

0 comments on commit 95f0de7

Please sign in to comment.