From 449317de92e23a6d2864f0c3b0697b11f98c30da Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 5 Jul 2024 11:30:35 +0700 Subject: [PATCH] no message --- src/migration/1720153794237-add_table_salary1.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/migration/1720153794237-add_table_salary1.ts diff --git a/src/migration/1720153794237-add_table_salary1.ts b/src/migration/1720153794237-add_table_salary1.ts new file mode 100644 index 0000000..3c5ee54 --- /dev/null +++ b/src/migration/1720153794237-add_table_salary1.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class AddTableSalary11720153794237 implements MigrationInterface { + name = 'AddTableSalary11720153794237' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`result\``); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`result\` varchar(255) NULL COMMENT 'ผลการประเมินผลการปฏิบัติราชการ'`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`result\``); + await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`result\` double NULL COMMENT 'ผลการประเมินผลการปฏิบัติราชการ'`); + } + +}