@grouparoo/core
Version:
The Grouparoo Core
27 lines (26 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
up: async (queryInterface, DataTypes) => {
await queryInterface.removeColumn("runs", "filter");
await queryInterface.removeColumn("runs", "highWaterMark");
await queryInterface.addColumn("runs", "highWaterMark", {
type: DataTypes.TEXT,
allowNull: true,
});
await queryInterface.addColumn("runs", "sourceOffset", {
type: DataTypes.STRING(191),
allowNull: true,
});
await queryInterface.renameColumn("runs", "limit", "groupMemberLimit");
await queryInterface.renameColumn("runs", "offset", "groupMemberOffset");
await queryInterface.renameColumn("runs", "method", "groupMethod");
},
down: async (queryInterface) => {
await queryInterface.removeColumn("runs", "highWaterMark");
await queryInterface.removeColumn("runs", "sourceOffset");
await queryInterface.renameColumn("runs", "groupMemberLimit", "limit");
await queryInterface.renameColumn("runs", "groupMemberOffset", "offset");
await queryInterface.renameColumn("runs", "groupMethod", "method");
},
};