"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logocolumn1702852711164 = void 0;
class Logocolumn1702852711164 {
    constructor() {
        this.name = 'Logocolumn1702852711164';
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE \`brand\` ADD \`logo_id\` varchar(36) NULL`);
        await queryRunner.query(`ALTER TABLE \`brand\` ADD UNIQUE INDEX \`IDX_492de04608d8a0f02ebf17c21f\` (\`logo_id\`)`);
        await queryRunner.query(`CREATE UNIQUE INDEX \`REL_492de04608d8a0f02ebf17c21f\` ON \`brand\` (\`logo_id\`)`);
        await queryRunner.query(`ALTER TABLE \`brand\` ADD CONSTRAINT \`FK_492de04608d8a0f02ebf17c21fa\` FOREIGN KEY (\`logo_id\`) REFERENCES \`file\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE \`brand\` DROP FOREIGN KEY \`FK_492de04608d8a0f02ebf17c21fa\``);
        await queryRunner.query(`DROP INDEX \`REL_492de04608d8a0f02ebf17c21f\` ON \`brand\``);
        await queryRunner.query(`ALTER TABLE \`brand\` DROP INDEX \`IDX_492de04608d8a0f02ebf17c21f\``);
        await queryRunner.query(`ALTER TABLE \`brand\` DROP COLUMN \`logo_id\``);
    }
}
exports.Logocolumn1702852711164 = Logocolumn1702852711164;
//# sourceMappingURL=1702852711164-logocolumn.js.map