เลื่อนเงินเดือนลูกจ้าง

This commit is contained in:
Kittapath 2024-03-21 22:59:39 +07:00
parent b54834ab9f
commit c5721faa70
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableProfileemployeeAddGroup1711033351014 implements MigrationInterface {
name = 'UpdateTableProfileemployeeAddGroup1711033351014'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEmployee\` ADD \`group\` int NULL COMMENT 'กลุ่มบัญชีการจ้าง'`);
await queryRunner.query(`ALTER TABLE \`profileEmployeeHistory\` ADD \`group\` int NULL COMMENT 'กลุ่มบัญชีการจ้าง'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEmployeeHistory\` DROP COLUMN \`group\``);
await queryRunner.query(`ALTER TABLE \`profileEmployee\` DROP COLUMN \`group\``);
}
}