ประวัติราชการ
This commit is contained in:
parent
a5ee4afd06
commit
e9732a1e52
2 changed files with 34 additions and 23 deletions
14
src/migration/1712119650901-add_table_developmentHistory2.ts
Normal file
14
src/migration/1712119650901-add_table_developmentHistory2.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddTableDevelopmentHistory21712119650901 implements MigrationInterface {
|
||||
name = 'AddTableDevelopmentHistory21712119650901'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentHistory\` ADD \`type\` varchar(40) NULL COMMENT 'ประเภทราชการ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentHistory\` DROP COLUMN \`type\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue