update_table_salaryProfile_add_isNext

This commit is contained in:
Kittapath 2024-03-07 17:37:00 +07:00
parent 8d492370b6
commit 20c5e39ff7
3 changed files with 250 additions and 27 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryProfileAddIsNext1709807736632 implements MigrationInterface {
name = 'UpdateTableSalaryProfileAddIsNext1709807736632'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`isNext\` tinyint NULL COMMENT 'ทะลุขั้น' DEFAULT 0`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`isNext\``);
}
}