Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
a9973e4ba7
2 changed files with 17 additions and 1 deletions
|
|
@ -31,6 +31,8 @@ export class ProfileChangePosition extends EntityBase {
|
|||
@Column({ nullable: true, comment: "ข้อมูลหน่วยงานเดิม เงินเดือน", type: "double", default: null })
|
||||
amountOld: number;
|
||||
|
||||
@Column({ nullable: true, type: "datetime", comment: "ดำรงตำแหน่งในระดับปัจจุบันเมื่อ", default: null })
|
||||
dateCurrent: Date
|
||||
|
||||
@Column({ nullable: true, comment: "profile Id", default: null })
|
||||
profileId: string;
|
||||
|
|
@ -255,7 +257,7 @@ export type UpdateProfileChangePosition = {
|
|||
positionLevelOld: string;
|
||||
positionNumberOld: string;
|
||||
amountOld: number;
|
||||
dateCurrent : Date | null
|
||||
dateCurrent : Date;
|
||||
reason: string | null;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableProfilechangeAddCurrent1718248767175 implements MigrationInterface {
|
||||
name = 'UpdateTableProfilechangeAddCurrent1718248767175'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileChangePosition\` ADD \`dateCurrent\` datetime NULL COMMENT 'ดำรงตำแหน่งในระดับปัจจุบันเมื่อ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileChangePosition\` DROP COLUMN \`dateCurrent\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue