UNPKG

@grouparoo/core

Version:
14 lines (13 loc) 684 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { // "aggregation method" renamed to "aggregationMethod" await queryInterface.sequelize.query(`UPDATE "options" SET key='aggregationMethod' WHERE key='aggregation method' AND "ownerType" = 'profilePropertyRule'`); // "sort column" renamed to "sortColumn" await queryInterface.sequelize.query(`UPDATE "options" SET key='sortColumn' WHERE key='sort column' AND "ownerType" = 'profilePropertyRule'`); }, down: async (queryInterface) => { throw new Error("migration cannot be reversed"); }, };