hrms-api-org/src/migration/1711105061801-update_table_profilegov_add_position.ts
2024-03-22 17:58:37 +07:00

16 lines
797 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableProfilegovAddPosition1711105061801 implements MigrationInterface {
name = 'UpdateTableProfilegovAddPosition1711105061801'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileGovernment\` ADD \`positionPathSide\` varchar(255) NULL`);
await queryRunner.query(`ALTER TABLE \`profileGovernment\` ADD \`positionExecutiveSide\` varchar(255) NULL`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`profileGovernment\` DROP COLUMN \`positionExecutiveSide\``);
await queryRunner.query(`ALTER TABLE \`profileGovernment\` DROP COLUMN \`positionPathSide\``);
}
}