no message
This commit is contained in:
parent
d21704baaf
commit
e9a6f00431
4 changed files with 230 additions and 386 deletions
14
src/migration/1713341677475-update_table_devhis_add_type.ts
Normal file
14
src/migration/1713341677475-update_table_devhis_add_type.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableDevhisAddType1713341677475 implements MigrationInterface {
|
||||
name = 'UpdateTableDevhisAddType1713341677475'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`plannedGoal\` ADD \`type\` varchar(255) NULL COMMENT 'ประเภท(กลุ่มอาชีพ คุณสมบัติ)'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`plannedGoal\` DROP COLUMN \`type\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue