2019-10-28 17:33:20 +01:00
|
|
|
'use strict'
|
2019-10-25 18:43:49 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
up: (queryInterface, Sequelize) => {
|
|
|
|
return queryInterface.addIndex('notifications', {
|
|
|
|
unique: true,
|
|
|
|
fields: ['action', 'type']
|
|
|
|
}).catch(e => {})
|
|
|
|
},
|
|
|
|
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
|
|
return queryInterface.removeIndex('notifications',
|
|
|
|
['actions', 'type'])
|
|
|
|
}
|
2019-10-28 17:33:20 +01:00
|
|
|
}
|