ประเภทประการเกียรติ
This commit is contained in:
parent
45c7a179c5
commit
087098f8b2
4 changed files with 37 additions and 1 deletions
16
src/migration/1738042376574-UpdateprofileHonoraddtype.ts
Normal file
16
src/migration/1738042376574-UpdateprofileHonoraddtype.ts
Normal 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\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue