hrms-api-org/src/migration/1710744584780-update_table_salaryprofile_add_salarylevel.ts

14 lines
613 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableSalaryprofileAddSalarylevel1710744584780 implements MigrationInterface {
name = 'UpdateTableSalaryprofileAddSalarylevel1710744584780'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEmployee\` ADD \`salaryLevel\` double NULL COMMENT 'ขั้นเงินเดือน'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEmployee\` DROP COLUMN \`salaryLevel\``);
}
}