migrate db

This commit is contained in:
Kittapath 2024-03-21 16:57:18 +07:00
parent 1fd8586c74
commit af8ee9f6b6

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505 implements MigrationInterface {
name = 'UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`posTypeShort\` varchar(100) NULL COMMENT 'ประเภทตำแหน่งย่อ'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`posTypeShort\``);
}
}