14 lines
591 B
TypeScript
14 lines
591 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class UpdateTableSalaryProfileAddIsretired1709180884777 implements MigrationInterface {
|
|
name = 'UpdateTableSalaryProfileAddIsretired1709180884777'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`isRetired\` tinyint NULL COMMENT 'เกษียญ' DEFAULT 0`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`isRetired\``);
|
|
}
|
|
|
|
}
|