diff --git a/src/entities/SalaryProfile.ts b/src/entities/SalaryProfile.ts index 3f281d8..f15b297 100644 --- a/src/entities/SalaryProfile.ts +++ b/src/entities/SalaryProfile.ts @@ -165,6 +165,27 @@ export class SalaryProfile extends EntityBase { }) status: string; + @Column({ + comment: "สถานะออกคำสั่ง33", + length: 20, + default: null, + }) + status33: string; + + @Column({ + comment: "สถานะออกคำสั่ง34", + length: 20, + default: null, + }) + status34: string; + + @Column({ + comment: "สถานะออกคำสั่ง35", + length: 20, + default: null, + }) + status35: string; + @Column({ nullable: true, comment: "id revision", diff --git a/src/entities/SalaryProfileEmployee.ts b/src/entities/SalaryProfileEmployee.ts index e577734..2e355c5 100644 --- a/src/entities/SalaryProfileEmployee.ts +++ b/src/entities/SalaryProfileEmployee.ts @@ -217,6 +217,20 @@ export class SalaryProfileEmployee extends EntityBase { }) status: string; + @Column({ + comment: "สถานะออกคำสั่ง36", + length: 20, + default: null, + }) + status36: string; + + @Column({ + comment: "สถานะออกคำสั่ง37", + length: 20, + default: null, + }) + status37: string; + @Column({ nullable: true, comment: "id revision", diff --git a/src/migration/1742293654061-update_profileSalary_and_profileSalaryEmp.ts b/src/migration/1742293654061-update_profileSalary_and_profileSalaryEmp.ts new file mode 100644 index 0000000..2d1a0dd --- /dev/null +++ b/src/migration/1742293654061-update_profileSalary_and_profileSalaryEmp.ts @@ -0,0 +1,22 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class UpdateProfileSalaryAndProfileSalaryEmp1742293654061 implements MigrationInterface { + name = 'UpdateProfileSalaryAndProfileSalaryEmp1742293654061' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status33\` varchar(20) NULL COMMENT 'สถานะออกคำสั่ง33'`); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status34\` varchar(20) NULL COMMENT 'สถานะออกคำสั่ง34'`); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status35\` varchar(20) NULL COMMENT 'สถานะออกคำสั่ง35'`); + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`status36\` varchar(20) NULL COMMENT 'สถานะออกคำสั่ง36'`); + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`status37\` varchar(20) NULL COMMENT 'สถานะออกคำสั่ง37'`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`status37\``); + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`status36\``); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`status35\``); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`status34\``); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`status33\``); + } + +}