คอมเม้นผู้บังคับบัญชา
This commit is contained in:
parent
9576d26753
commit
7f7b676750
9 changed files with 318 additions and 10 deletions
|
|
@ -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\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue