UNPKG

@grouparoo/core

Version:
18 lines (17 loc) 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.addColumn("profiles", "anonymousId", { type: DataTypes.STRING(191), allowNull: true, }); await queryInterface.addIndex("profiles", ["anonymousId"], { fields: ["anonymousId"], unique: true, }); }, down: async (queryInterface) => { await queryInterface.removeColumn("profiles", "anonymousId"); }, };