hrms-api-salary/src/migration/1746095843641-update300420250045.ts
2025-05-01 17:39:55 +07:00

15 lines
550 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class Update3004202500451746095843641 implements MigrationInterface {
name = "Update3004202500451746095843641";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE \`salaryProfileEmployee\` ADD \`isGood\` tinyint NULL COMMENT 'ดีเด่น'`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`isGood\``);
}
}