เปิดปิดรอบประเมิน

This commit is contained in:
Kittapath 2024-04-16 07:50:53 +07:00
parent 50f0e205f6
commit f75bd88f6b
3 changed files with 79 additions and 1 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableKpiperiodAddIsactive1713223298389 implements MigrationInterface {
name = 'UpdateTableKpiperiodAddIsactive1713223298389'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiPeriod\` ADD \`isActive\` tinyint NOT NULL COMMENT 'รอบ' DEFAULT 0`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`kpiPeriod\` DROP COLUMN \`isActive\``);
}
}