คอมเม้นผู้บังคับบัญชา
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 UpdateTableKpiUserEvalutionAddPoint21714126663201 implements MigrationInterface {
|
||||
name = 'UpdateTableKpiUserEvalutionAddPoint21714126663201'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`evaluatorTopic\` varchar(255) NULL COMMENT 'หัวข้อ ของผู้ประเมิน'`);
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`commanderTopic\` varchar(255) NULL COMMENT 'หัวข้อ ของผู้บังคับบัญชาเหนือขึ้นไป'`);
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`commanderHighTopic\` varchar(255) NULL COMMENT 'หัวข้อ ของผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`commanderHighTopic\``);
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`commanderTopic\``);
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`evaluatorTopic\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue