UNPKG

@grouparoo/core

Version:
34 lines (33 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.removeColumn("imports", "rawData"); await queryInterface.removeColumn("imports", "oldRecordProperties"); await queryInterface.removeColumn("imports", "newRecordProperties"); await queryInterface.removeColumn("imports", "oldGroupIds"); await queryInterface.removeColumn("imports", "newGroupIds"); }, down: async (queryInterface, DataTypes) => { await queryInterface.addColumn("imports", "rawData", { type: DataTypes.TEXT, allowNull: true, }); await queryInterface.addColumn("imports", "oldRecordProperties", { type: DataTypes.TEXT, allowNull: true, }); await queryInterface.addColumn("imports", "newRecordProperties", { type: DataTypes.TEXT, allowNull: true, }); await queryInterface.addColumn("imports", "oldGroupIds", { type: DataTypes.TEXT, allowNull: true, }); await queryInterface.addColumn("imports", "newGroupIds", { type: DataTypes.TEXT, allowNull: true, }); }, };