migrate db
This commit is contained in:
parent
018bff61fc
commit
42fd0084aa
1 changed files with 16 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableSalaryprofileAddSalarylevel11710748447345 implements MigrationInterface {
|
||||
name = 'UpdateTableSalaryprofileAddSalarylevel11710748447345'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileEducation\` ADD \`note\` varchar(255) NULL COMMENT 'หมายเหตุ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`profileInsignia\` ADD \`note\` varchar(255) NULL COMMENT 'หมายเหตุ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileInsignia\` DROP COLUMN \`note\``);
|
||||
await queryRunner.query(`ALTER TABLE \`profileEducation\` DROP COLUMN \`note\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue