add mariadb & mysql support
This commit is contained in:
@@ -13,6 +13,7 @@ const db = {
|
||||
},
|
||||
connect (dbConf = config.db) {
|
||||
log.debug(`Connecting to DB: ${JSON.stringify(dbConf)}`)
|
||||
dbConf.dialectOptions = { autoJsonMap: false }
|
||||
db.sequelize = new Sequelize(dbConf)
|
||||
return db.sequelize.authenticate()
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = {
|
||||
return queryInterface.createTable('event_notifications', {
|
||||
status: {
|
||||
type: Sequelize.ENUM,
|
||||
values: ['new', 'sent', 'error'],
|
||||
values: ['new', 'sent', 'error', 'sending'],
|
||||
defaultValue: 'new',
|
||||
index: true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user