migrate db
This commit is contained in:
parent
1fd8586c74
commit
af8ee9f6b6
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505 implements MigrationInterface {
|
||||
name = 'UpdateTableSalaryProfileEmployeeAddPosTypeShort1711014950505'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`posTypeShort\` varchar(100) NULL COMMENT 'ประเภทตำแหน่งย่อ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`posTypeShort\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue