mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-05-17 19:39:31 +08:00
mssql->postgres
This commit is contained in:
parent
b91f76c9ce
commit
c3cabcc273
@ -5,9 +5,13 @@ var log = require('../log');
|
||||
log.Logger.debug('Initializing connection to SQL Server: %s', dbConfig.connection.host);
|
||||
|
||||
var sequelize = new Sequelize(dbConfig.connection.dbName, dbConfig.connection.username, dbConfig.connection.password, {
|
||||
dialect: 'mssql',
|
||||
dialect: 'postgres',
|
||||
host: dbConfig.connection.host,
|
||||
port: dbConfig.connection.port,
|
||||
omitNull: true,
|
||||
define: {
|
||||
timestamps: false
|
||||
},
|
||||
pool: {
|
||||
max: dbConfig.pool.max
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user