migrate
This commit is contained in:
parent
587fe5d5b6
commit
7891429d77
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableProfileEduAddIsuse1736182750070 implements MigrationInterface {
|
||||
name = 'UpdateTableProfileEduAddIsuse1736182750070'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileEducation\` ADD \`isUse\` tinyint NULL COMMENT 'ใช้ประวัติการศึกษา'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileEducation\` DROP COLUMN \`isUse\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue