migrate
This commit is contained in:
parent
9f2357b81c
commit
da4eb54a59
1 changed files with 16 additions and 0 deletions
16
src/migration/1715825687386-add_table_avatarName1.ts
Normal file
16
src/migration/1715825687386-add_table_avatarName1.ts
Normal 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 'ระยะเวลาหลักสูตร'`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue