Merge branch 'develop' into adiDev
This commit is contained in:
commit
2617791a31
2 changed files with 26 additions and 0 deletions
|
|
@ -64,6 +64,14 @@ export class DevelopmentHistory extends EntityBase {
|
|||
})
|
||||
position: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อตำแหน่งทางการบริหาร",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
posExecutive: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
|
|
@ -149,6 +157,8 @@ export class CreateDevelopmentHistory {
|
|||
@Column()
|
||||
position: string | null;
|
||||
@Column()
|
||||
posExecutive: string | null;
|
||||
@Column()
|
||||
posLevelId: string | null;
|
||||
@Column()
|
||||
posTypeId: string | null;
|
||||
|
|
@ -174,6 +184,8 @@ export class UpdateDevelopmentHistory {
|
|||
@Column()
|
||||
position: string | null;
|
||||
@Column()
|
||||
posExecutive: string | null;
|
||||
@Column()
|
||||
posLevelId: string | null;
|
||||
@Column()
|
||||
posTypeId: string | null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableDevelopmentHistoryAddType11712126314212 implements MigrationInterface {
|
||||
name = 'UpdateTableDevelopmentHistoryAddType11712126314212'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentHistory\` ADD \`posExecutive\` varchar(255) NULL COMMENT 'ชื่อตำแหน่งทางการบริหาร'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentHistory\` DROP COLUMN \`posExecutive\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue