เพิ่มฟิว isretire

This commit is contained in:
Kittapath 2024-02-29 11:29:05 +07:00
parent 77b8ef8a7d
commit 8358ed8773
3 changed files with 37 additions and 9 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryProfileAddIsretired1709180884777 implements MigrationInterface {
name = 'UpdateTableSalaryProfileAddIsretired1709180884777'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`isRetired\` tinyint NULL COMMENT 'เกษียญ' DEFAULT 0`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`isRetired\``);
}
}