This commit is contained in:
Kittapath 2024-05-16 09:16:09 +07:00
parent 9f2357b81c
commit da4eb54a59

View file

@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class AddTableAvatarName11715825687386 implements MigrationInterface {
name = 'AddTableAvatarName11715825687386'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEducationHistory\` CHANGE \`durationYear\` \`durationYear\` int NULL COMMENT 'ระยะเวลาหลักสูตร'`);
await queryRunner.query(`ALTER TABLE \`profileEducation\` CHANGE \`durationYear\` \`durationYear\` int NULL COMMENT 'ระยะเวลาหลักสูตร'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileEducation\` CHANGE \`durationYear\` \`durationYear\` int NOT NULL COMMENT 'ระยะเวลาหลักสูตร'`);
await queryRunner.query(`ALTER TABLE \`profileEducationHistory\` CHANGE \`durationYear\` \`durationYear\` int NOT NULL COMMENT 'ระยะเวลาหลักสูตร'`);
}
}