diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/database.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 2260938b1..85d205cdc 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -28,13 +28,16 @@ require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to strin | |||
28 | const dbname = CONFIG.DATABASE.DBNAME | 28 | const dbname = CONFIG.DATABASE.DBNAME |
29 | const username = CONFIG.DATABASE.USERNAME | 29 | const username = CONFIG.DATABASE.USERNAME |
30 | const password = CONFIG.DATABASE.PASSWORD | 30 | const password = CONFIG.DATABASE.PASSWORD |
31 | const host = CONFIG.DATABASE.HOSTNAME | ||
32 | const port = CONFIG.DATABASE.PORT | ||
31 | 33 | ||
32 | const sequelizeTypescript = new SequelizeTypescript({ | 34 | const sequelizeTypescript = new SequelizeTypescript({ |
33 | database: dbname, | 35 | database: dbname, |
34 | dialect: 'postgres', | 36 | dialect: 'postgres', |
37 | host, | ||
38 | port, | ||
35 | username, | 39 | username, |
36 | password, | 40 | password, |
37 | modelPaths: [__dirname + '/models'], | ||
38 | benchmark: isTestInstance(), | 41 | benchmark: isTestInstance(), |
39 | isolationLevel: SequelizeTypescript.Transaction.ISOLATION_LEVELS.SERIALIZABLE, | 42 | isolationLevel: SequelizeTypescript.Transaction.ISOLATION_LEVELS.SERIALIZABLE, |
40 | operatorsAliases: false, | 43 | operatorsAliases: false, |