diff --git a/src/migration/1711014950505-update_table_salaryProfileEmployee_add_posTypeShort.ts b/src/migration/1711014950505-update_table_salaryProfileEmployee_add_posTypeShort.ts new file mode 100644 index 0000000..4bc95e6 --- /dev/null +++ b/src/migration/1711014950505-update_table_salaryProfileEmployee_add_posTypeShort.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505 implements MigrationInterface { + name = 'UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`posTypeShort\` varchar(100) NULL COMMENT 'ประเภทตำแหน่งย่อ'`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`posTypeShort\``); + } + +}