no message

This commit is contained in:
kittapath 2025-02-04 12:02:22 +07:00
parent 7bf4310063
commit 4b967b59eb
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateProfileAssessmentAddYear11738645160671 implements MigrationInterface {
name = 'UpdateProfileAssessmentAddYear11738645160671'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` ADD \`period\` varchar(255) NULL COMMENT 'รอบการประเมิน'`);
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` ADD \`year\` varchar(255) NULL COMMENT 'ปีการประเมิน'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` DROP COLUMN \`year\``);
await queryRunner.query(`ALTER TABLE \`profileAssessmentHistory\` DROP COLUMN \`period\``);
}
}