no message
This commit is contained in:
parent
36155a1a1c
commit
b27c61a01f
3 changed files with 39 additions and 1 deletions
|
|
@ -18,6 +18,14 @@ export class SalaryProfile extends EntityBase {
|
|||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ยศ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
rank: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "คำนำหน้า",
|
||||
|
|
@ -324,6 +332,9 @@ export class CreateSalaryProfile {
|
|||
@Column()
|
||||
profileId: string;
|
||||
|
||||
@Column()
|
||||
rank?: string | null;
|
||||
|
||||
@Column()
|
||||
prefix: string;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,14 @@ export class SalaryProfileEmployee extends EntityBase {
|
|||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ยศ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
rank: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "คำนำหน้า",
|
||||
|
|
@ -376,6 +384,9 @@ export class CreateSalaryProfileEmployee {
|
|||
@Column()
|
||||
profileId: string;
|
||||
|
||||
@Column()
|
||||
rank?: string | null;
|
||||
|
||||
@Column()
|
||||
prefix: string;
|
||||
|
||||
|
|
@ -407,7 +418,7 @@ export class CreateSalaryProfileEmployee {
|
|||
posType: string | null;
|
||||
|
||||
@Column()
|
||||
posLevel: string | null;
|
||||
posLevel: number | null;
|
||||
|
||||
@Column()
|
||||
group: number | null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableSalaryProfileAddRank1716881317736 implements MigrationInterface {
|
||||
name = 'UpdateTableSalaryProfileAddRank1716881317736'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`rank\` varchar(255) NULL COMMENT 'ยศ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`rank\` varchar(255) NULL COMMENT 'ยศ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`rank\``);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`rank\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue