ประวัติราชการ

This commit is contained in:
Kittapath 2024-04-03 11:48:06 +07:00
parent a5ee4afd06
commit e9732a1e52
2 changed files with 34 additions and 23 deletions

View 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\``);
}
}