14 lines
655 B
TypeScript
14 lines
655 B
TypeScript
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\``);
|
|
}
|
|
|
|
}
|