import { MigrationInterface, QueryRunner } from "typeorm"; export class UpdateProfileDisciplineAddRefCommandId1780634210221 implements MigrationInterface { name = 'UpdateProfileDisciplineAddRefCommandId1780634210221' public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE \`profileDisciplineHistory\` ADD \`refCommandId\` varchar(40) NULL COMMENT 'คีย์นอก(FK)ของตาราง command'`); await queryRunner.query(`ALTER TABLE \`profileDiscipline\` ADD \`refCommandId\` varchar(40) NULL COMMENT 'คีย์นอก(FK)ของตาราง command'`); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE \`profileDiscipline\` DROP COLUMN \`refCommandId\``); await queryRunner.query(`ALTER TABLE \`profileDisciplineHistory\` DROP COLUMN \`refCommandId\``); } }