fix status event_notification enum adding 'sending'

This commit is contained in:
les 2021-03-08 21:07:32 +01:00
parent 716f9ac5fd
commit 780a3d9241
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 11 additions and 1 deletions

View file

@ -6,7 +6,7 @@ class EventNotification extends Model {}
EventNotification.init({
status: {
type: DataTypes.ENUM,
values: ['new', 'sent', 'error'],
values: ['new', 'sent', 'error', 'sending'],
defaultValue: 'new',
index: true
}

View file

@ -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) => {
}
}