import { MigrationInterface, QueryRunner } from "typeorm"; export class UpdateTableMigration073020241722313928787 implements MigrationInterface { name = 'UpdateTableMigration073020241722313928787' public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE \`developmentHistory\` ADD \`isProfile\` tinyint NOT NULL COMMENT 'มีข้อมูลอยู่ในทะเบียนประวัติ' DEFAULT 0`); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE \`developmentHistory\` DROP COLUMN \`isProfile\``); } }