ประเภทประการเกียรติ

This commit is contained in:
kittapath 2025-01-28 12:35:06 +07:00
parent 45c7a179c5
commit 087098f8b2
4 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateprofileHonoraddtype1738042376574 implements MigrationInterface {
name = 'UpdateprofileHonoraddtype1738042376574'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileHonorHistory\` ADD \`type\` varchar(200) NULL COMMENT 'ประเภท'`);
await queryRunner.query(`ALTER TABLE \`profileHonor\` ADD \`type\` varchar(200) NULL COMMENT 'ประเภท'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileHonor\` DROP COLUMN \`type\``);
await queryRunner.query(`ALTER TABLE \`profileHonorHistory\` DROP COLUMN \`type\``);
}
}