This commit is contained in:
2017-02-07 16:05:12 +08:00
parent 496aab75e9
commit 54088e3f10
6 changed files with 28 additions and 16 deletions

View File

@ -1,9 +1,9 @@
import Sequelize from 'sequelize'
import { SystemConfig } from '../config'
import { DB as DBConfig, System as SystemConfig } from '../config'
export default new Sequelize(SystemConfig.mysql_database, SystemConfig.mysql_user, SystemConfig.mysql_password, {
host: SystemConfig.mysql_host,
dialect: 'mysql',
export default new Sequelize(DBConfig.database, DBConfig.username, DBConfig.password, {
host: DBConfig.host,
dialect: SystemConfig.db_type,
pool: {
max: 50,
min: 0,