คอมเม้นผู้บังคับบัญชา

This commit is contained in:
Kittapath 2024-04-26 17:39:24 +07:00
parent 9576d26753
commit 7f7b676750
9 changed files with 318 additions and 10 deletions

View file

@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableKpiUserEvalutionAddPoint11714125714200 implements MigrationInterface {
name = 'UpdateTableKpiUserEvalutionAddPoint11714125714200'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`evaluatorReason\` varchar(255) NULL COMMENT 'หมายเหตุ ของผู้ประเมิน'`);
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`commanderReason\` varchar(255) NULL COMMENT 'หมายเหตุ ของผู้บังคับบัญชาเหนือขึ้นไป'`);
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`commanderHighReason\` varchar(255) NULL COMMENT 'หมายเหตุ ของผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`commanderHighReason\``);
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`commanderReason\``);
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`evaluatorReason\``);
}
}