คำนวนวันเกษียณอายุราชการ
This commit is contained in:
parent
db479c4ab6
commit
73e07dfed6
3 changed files with 54 additions and 1236 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableProfileAddIsLeave11711421865315 implements MigrationInterface {
|
||||
name = 'UpdateTableProfileAddIsLeave11711421865315'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profile\` ADD \`nationality\` varchar(255) NULL COMMENT 'สัญชาติ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`profileHistory\` ADD \`nationality\` varchar(255) NULL COMMENT 'สัญชาติ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileHistory\` DROP COLUMN \`nationality\``);
|
||||
await queryRunner.query(`ALTER TABLE \`profile\` DROP COLUMN \`nationality\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue