This commit is contained in:
Kittapath 2024-03-29 10:34:52 +07:00
parent 7a32ce6d81
commit 877207412a

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryprofileAddRoot11711631590179 implements MigrationInterface {
name = 'UpdateTableSalaryprofileAddRoot11711631590179'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryOrgEmployee\` ADD \`root\` varchar(255) NULL COMMENT 'orgRoot'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryOrgEmployee\` DROP COLUMN \`root\``);
}
}