diff --git a/src/migrations/20191112103807-add-transaction-index-tracker.js b/src/migrations/20191112103807-add-transaction-index-tracker.js new file mode 100644 index 0000000..65b798a --- /dev/null +++ b/src/migrations/20191112103807-add-transaction-index-tracker.js @@ -0,0 +1,11 @@ +"use strict"; + +module.exports = { + up: async (queryInterface, Sequelize) => { + await queryInterface.addIndex("Transactions", ["tracker"]); + }, + + down: async (queryInterface, Sequelize) => { + await queryInterface.removeIndex("Transactions", ["tracker"]); + } +};