mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
15 lines
336 B
JavaScript
15 lines
336 B
JavaScript
'use strict'
|
|
|
|
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'])
|
|
}
|
|
}
|