เพิ่มฟิว isProfile

This commit is contained in:
AdisakKanthawilang 2024-07-30 11:33:46 +07:00
parent 29527c512e
commit 02002a32a6
3 changed files with 21 additions and 0 deletions

View file

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