Merge branch 'develop' of github.com:Frappet/bma-ehr-probation into develop
This commit is contained in:
commit
2e2dc56f87
3 changed files with 674 additions and 566 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -86,6 +86,12 @@ export class Assign extends EntityBase {
|
|||
})
|
||||
other_desc!: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "Id ของการแต่งตั้งคณะกรรมการ",
|
||||
})
|
||||
appointId: string;
|
||||
|
||||
@ManyToOne(() => Personal, (person: Personal) => person.personal_id)
|
||||
@JoinColumn({ name: "personal_id" })
|
||||
profile: Personal;
|
||||
|
|
@ -179,6 +185,7 @@ export class CreateAssign {
|
|||
position?: string;
|
||||
monthSelect?: number;
|
||||
other_desc?: string;
|
||||
appointId?: string;
|
||||
|
||||
assign_competency_group: CreateAssignCompetencyGroup[];
|
||||
assign_competency: CreateAssignCompetency[];
|
||||
|
|
|
|||
18
src/migration/1729220132639-addColumn.ts
Normal file
18
src/migration/1729220132639-addColumn.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddColumn1729220132639 implements MigrationInterface {
|
||||
name = 'AddColumn1729220132639'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` ADD \`appointId\` varchar(255) NULL COMMENT 'Id ของการแต่งตั้งคณะกรรมการ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` DROP COLUMN \`other_desc\``);
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` ADD \`other_desc\` varchar(255) NULL COMMENT 'กฎหมายอื่นๆ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` DROP COLUMN \`other_desc\``);
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` ADD \`other_desc\` varchar(45) NULL`);
|
||||
await queryRunner.query(`ALTER TABLE \`assign\` DROP COLUMN \`appointId\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue