UNPKG

@grouparoo/core

Version:
13 lines (12 loc) 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface) => { await queryInterface.renameColumn("imports", "exportedAt", "processedAt"); await queryInterface.sequelize.query(`UPDATE "imports" SET "state"='processing' WHERE "state"='exporting'`); }, down: async (queryInterface) => { await queryInterface.renameColumn("imports", "processedAt", "exportedAt"); await queryInterface.sequelize.query(`UPDATE "imports" SET "state"='exporting' WHERE "state"='processing'`); }, };