ออกคำสั่ง

This commit is contained in:
Kittapath 2024-06-28 15:03:02 +07:00
parent 505baa7bba
commit 40f45b01e6
5 changed files with 203 additions and 3 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class AddTableAddDate1719559101541 implements MigrationInterface {
name = 'AddTableAddDate1719559101541'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`openDate\` datetime NULL COMMENT 'วันที่การรับทราบผลการประเมิน'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`openDate\``);
}
}