Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s

This commit is contained in:
adisak 2026-04-07 17:44:12 +07:00
commit ce4a8aa94a
3 changed files with 20 additions and 4 deletions

View file

@ -12,9 +12,9 @@ enum EmployeePosLevelAuthoritys {
export class EmployeePosLevel extends EntityBase {
@Column({
comment: "ชื่อระดับชั้นงาน",
type: "int",
length: 255,
})
posLevelName: number;
posLevelName: string;
@Column({
comment: "ระดับของระดับชั้นงาน",

View file

@ -134,7 +134,7 @@ export class SalaryProfileEmployee extends EntityBase {
comment: "ระดับตำแหน่ง",
default: null,
})
posLevel: number;
posLevel: string;
@Column({
type: "double",
@ -482,7 +482,7 @@ export class CreateSalaryProfileEmployee {
posType: string | null;
@Column()
posLevel: number | null;
posLevel: string | null;
@Column()
group: number | null;

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTablePosLevelToString20260407112136 implements MigrationInterface {
name = 'UpdateTablePosLevelToString20260407112136'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` CHANGE \`posLevel\` \`posLevel\` varchar(255) NULL COMMENT 'ระดับตำแหน่ง'`);
await queryRunner.query(`ALTER TABLE \`employeePosLevel\` CHANGE \`posLevelName\` \`posLevelName\` varchar(255) NOT NULL COMMENT 'ชื่อระดับชั้นงาน'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` CHANGE \`posLevel\` \`posLevel\` double NULL COMMENT 'ระดับตำแหน่ง'`);
await queryRunner.query(`ALTER TABLE \`employeePosLevel\` CHANGE \`posLevelName\` \`posLevelName\` int NOT NULL COMMENT 'ชื่อระดับชั้นงาน'`);
}
}