เพิ่ม totalPoint

This commit is contained in:
Kittapath 2024-06-17 13:27:38 +07:00
parent f6fd679a88
commit ac9e184ee7
2 changed files with 22 additions and 0 deletions

View file

@ -156,6 +156,14 @@ export class KpiUserEvaluation extends EntityBase {
})
capacityPoint: number;
@Column({
type: "double",
nullable: true,
default: null,
comment: "คะแนนประเมิน",
})
totalPoint: number;
@Column({
nullable: true,
length: 40,

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableKpiUserEvaluationAddTotalPoint1718605582205 implements MigrationInterface {
name = 'UpdateTableKpiUserEvaluationAddTotalPoint1718605582205'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`totalPoint\` double NULL COMMENT 'คะแนนประเมิน'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`totalPoint\``);
}
}