UNPKG

@grouparoo/core

Version:
15 lines (14 loc) 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.addColumn("exports", "errorLevel", { type: DataTypes.STRING(191), allowNull: true, }); await queryInterface.sequelize.query(`UPDATE "exports" SET "errorLevel"='error' WHERE "errorMessage" IS NOT NULL`); }, down: async (queryInterface) => { await queryInterface.removeColumn("exports", "errorLevel"); }, };