14 lines
601 B
TypeScript
14 lines
601 B
TypeScript
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\``);
|
|
}
|
|
|
|
}
|