no message

This commit is contained in:
Kittapath 2024-05-28 15:29:05 +07:00
parent 36155a1a1c
commit b27c61a01f
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryProfileAddRank1716881317736 implements MigrationInterface {
name = 'UpdateTableSalaryProfileAddRank1716881317736'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`rank\` varchar(255) NULL COMMENT 'ยศ'`);
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`rank\` varchar(255) NULL COMMENT 'ยศ'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`rank\``);
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`rank\``);
}
}