[hot] forgot status field in eventnotification migration

This commit is contained in:
les
2019-10-30 15:22:41 +01:00
parent 08f7e92e76
commit 8da4b0ff0c
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,12 @@
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('event_notifications', {
status: {
type: Sequelize.ENUM,
values: ['new', 'sent', 'error'],
defaultValue: 'new',
index: true
},
createdAt: {
allowNull: false,
type: Sequelize.DATE