fix status event_notification enum adding 'sending'
This commit is contained in:
@@ -6,7 +6,7 @@ class EventNotification extends Model {}
|
|||||||
EventNotification.init({
|
EventNotification.init({
|
||||||
status: {
|
status: {
|
||||||
type: DataTypes.ENUM,
|
type: DataTypes.ENUM,
|
||||||
values: ['new', 'sent', 'error'],
|
values: ['new', 'sent', 'error', 'sending'],
|
||||||
defaultValue: 'new',
|
defaultValue: 'new',
|
||||||
index: true
|
index: true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
up: (queryInterface, Sequelize) => {
|
||||||
|
return queryInterface.sequelize.query('ALTER TYPE "enum_event_notifications_status" ADD VALUE \'sending\'')
|
||||||
|
},
|
||||||
|
|
||||||
|
down: (queryInterface, Sequelize) => {
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user