เพิ่ม totalPoint
This commit is contained in:
parent
f6fd679a88
commit
ac9e184ee7
2 changed files with 22 additions and 0 deletions
|
|
@ -156,6 +156,14 @@ export class KpiUserEvaluation extends EntityBase {
|
||||||
})
|
})
|
||||||
capacityPoint: number;
|
capacityPoint: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "double",
|
||||||
|
nullable: true,
|
||||||
|
default: null,
|
||||||
|
comment: "คะแนนประเมิน",
|
||||||
|
})
|
||||||
|
totalPoint: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
|
|
||||||
|
|
@ -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\``);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue