UNPKG

@grouparoo/core

Version:
22 lines (21 loc) 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.addColumn("models", "state", { type: DataTypes.STRING(191), allowNull: false, defaultValue: "ready", }); await queryInterface.changeColumn("models", "state", { type: DataTypes.STRING(191), allowNull: false, }); await queryInterface.addIndex("models", ["state"], { fields: ["state"], }); }, down: async (queryInterface) => { await queryInterface.removeColumn("models", "state"); }, };