"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Unique1701383557002 = void 0;
class Unique1701383557002 {
    constructor() {
        this.name = 'Unique1701383557002';
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE \`categories\` ADD UNIQUE INDEX \`IDX_8b0be371d28245da6e4f4b6187\` (\`name\`)`);
        await queryRunner.query(`ALTER TABLE \`categories\` CHANGE \`description\` \`description\` varchar(255) NULL`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE \`categories\` CHANGE \`description\` \`description\` varchar(255) NOT NULL`);
        await queryRunner.query(`ALTER TABLE \`categories\` DROP INDEX \`IDX_8b0be371d28245da6e4f4b6187\``);
    }
}
exports.Unique1701383557002 = Unique1701383557002;
//# sourceMappingURL=1701383557002-unique.js.map