uplink/migrations/20181021154055-index-on-typ...

17 lines
329 B
JavaScript

'use strict';
const indexName ='events_type_index';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addIndex('events', {
name: indexName,
fields: ['type'],
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeIndex('events', indexName);
}
};