เพิ่มฟิวงบระมาณ

This commit is contained in:
Kittapath 2024-02-27 10:09:06 +07:00
parent bf12751bfa
commit 092d8e2e18
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryPeriodAddYear1709003297171 implements MigrationInterface {
name = 'UpdateTableSalaryPeriodAddYear1709003297171'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryPeriod\` ADD \`year\` int NULL COMMENT 'ปีงบหระมาณ'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryPeriod\` DROP COLUMN \`year\``);
}
}