migrate
This commit is contained in:
parent
442e75d4af
commit
71897b5ec2
3 changed files with 57 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateProfileSalaryAndProfileSalaryEmp1742293654061 implements MigrationInterface {
|
||||
name = 'UpdateProfileSalaryAndProfileSalaryEmp1742293654061'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
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<void> {
|
||||
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\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue