no message
This commit is contained in:
parent
7bf4310063
commit
4b967b59eb
2 changed files with 30 additions and 0 deletions
|
|
@ -18,6 +18,20 @@ export class ProfileAssessmentHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
comment: "รอบการประเมิน",
|
||||||
|
length: 255,
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
|
period: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
comment: "ปีการประเมิน",
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
year: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateProfileAssessmentAddYear11738645160671 implements MigrationInterface {
|
||||||
|
name = 'UpdateProfileAssessmentAddYear11738645160671'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` ADD \`period\` varchar(255) NULL COMMENT 'รอบการประเมิน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` ADD \`year\` varchar(255) NULL COMMENT 'ปีการประเมิน'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` DROP COLUMN \`year\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` DROP COLUMN \`period\``);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue