@grouparoo/core
Version:
The Grouparoo Core
18 lines (17 loc) • 563 B
JavaScript
;
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");
},
};