UNPKG

@grouparoo/core

Version:
26 lines (25 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.addColumn("runs", "limit", { type: DataTypes.BIGINT, allowNull: false, defaultValue: 0, }); await queryInterface.addColumn("runs", "offset", { type: DataTypes.BIGINT, allowNull: false, defaultValue: 0, }); await queryInterface.addColumn("runs", "method", { type: DataTypes.TEXT, allowNull: true, }); }, down: async (queryInterface) => { await queryInterface.removeColumn("runs", "limit"); await queryInterface.removeColumn("runs", "offset"); await queryInterface.removeColumn("runs", "method"); }, };