From af8ee9f6b630b9819b81a1563906799cc20809f8 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 21 Mar 2024 16:57:18 +0700 Subject: [PATCH] migrate db --- ...table_salaryProfileEmployee_add_posTypeShort.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/migration/1711014950505-update_table_salaryProfileEmployee_add_posTypeShort.ts 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\``); + } + +}