diff --git a/server/api/models/eventnotification.js b/server/api/models/eventnotification.js index 279e7df3..d89f99eb 100644 --- a/server/api/models/eventnotification.js +++ b/server/api/models/eventnotification.js @@ -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 } diff --git a/server/migrations/20210308194339-sending_notification_status.js b/server/migrations/20210308194339-sending_notification_status.js new file mode 100644 index 00000000..14e58948 --- /dev/null +++ b/server/migrations/20210308194339-sending_notification_status.js @@ -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) => { + } +}