update default "PENDING"
This commit is contained in:
parent
71897b5ec2
commit
29ed88b5a7
3 changed files with 27 additions and 5 deletions
|
|
@ -168,21 +168,21 @@ export class SalaryProfile extends EntityBase {
|
|||
@Column({
|
||||
comment: "สถานะออกคำสั่ง33",
|
||||
length: 20,
|
||||
default: null,
|
||||
default: "PENDING",
|
||||
})
|
||||
status33: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะออกคำสั่ง34",
|
||||
length: 20,
|
||||
default: null,
|
||||
default: "PENDING",
|
||||
})
|
||||
status34: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะออกคำสั่ง35",
|
||||
length: 20,
|
||||
default: null,
|
||||
default: "PENDING",
|
||||
})
|
||||
status35: string;
|
||||
|
||||
|
|
|
|||
|
|
@ -220,14 +220,14 @@ export class SalaryProfileEmployee extends EntityBase {
|
|||
@Column({
|
||||
comment: "สถานะออกคำสั่ง36",
|
||||
length: 20,
|
||||
default: null,
|
||||
default: "PENDING",
|
||||
})
|
||||
status36: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะออกคำสั่ง37",
|
||||
length: 20,
|
||||
default: null,
|
||||
default: "PENDING",
|
||||
})
|
||||
status37: string;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateProfileSalaryAndProfileSalaryEmp1742297168141 implements MigrationInterface {
|
||||
name = 'UpdateProfileSalaryAndProfileSalaryEmp1742297168141'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`status36\` varchar(20) NOT NULL COMMENT 'สถานะออกคำสั่ง36' DEFAULT 'PENDING'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`status37\` varchar(20) NOT NULL COMMENT 'สถานะออกคำสั่ง37' DEFAULT 'PENDING'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status33\` varchar(20) NOT NULL COMMENT 'สถานะออกคำสั่ง33' DEFAULT 'PENDING'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status34\` varchar(20) NOT NULL COMMENT 'สถานะออกคำสั่ง34' DEFAULT 'PENDING'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`status35\` varchar(20) NOT NULL COMMENT 'สถานะออกคำสั่ง35' DEFAULT 'PENDING'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
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\``);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`status37\``);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`status36\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue