ลบ summary
This commit is contained in:
parent
6e07eaacba
commit
c94f9c4b06
2 changed files with 21 additions and 4 deletions
|
|
@ -27,6 +27,13 @@ export class KpiUserDevelopment extends EntityBase {
|
||||||
})
|
})
|
||||||
summary: number;
|
summary: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
comment: "ระดับคะแนน",
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
|
point: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "เกณฑ์การประเมิน 10",
|
comment: "เกณฑ์การประเมิน 10",
|
||||||
|
|
@ -91,8 +98,6 @@ export class CreateKpiUserDevelopment {
|
||||||
@Column()
|
@Column()
|
||||||
target: string | null;
|
target: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
summary?: number | null;
|
|
||||||
@Column()
|
|
||||||
achievement10?: string | null;
|
achievement10?: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
achievement5?: string | null;
|
achievement5?: string | null;
|
||||||
|
|
@ -114,8 +119,6 @@ export class UpdateKpiUserDevelopment {
|
||||||
@Column()
|
@Column()
|
||||||
target: string | null;
|
target: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
summary?: number | null;
|
|
||||||
@Column()
|
|
||||||
achievement10?: string | null;
|
achievement10?: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
achievement5?: string | null;
|
achievement5?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateTableKpiSpecialUnitToString11715245130866 implements MigrationInterface {
|
||||||
|
name = 'UpdateTableKpiSpecialUnitToString11715245130866'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserDevelopment\` ADD \`point\` int NULL COMMENT 'ระดับคะแนน'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserDevelopment\` DROP COLUMN \`point\``);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue