mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
fix status event_notification enum adding 'sending'
This commit is contained in:
parent
716f9ac5fd
commit
780a3d9241
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue