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