hrms-api-org/src/migration/1740033601269-addtableorgtemp1.ts
2025-02-20 13:51:24 +07:00

14 lines
682 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class Addtableorgtemp11740033601269 implements MigrationInterface {
name = 'Addtableorgtemp11740033601269'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`employeePosition\` ADD CONSTRAINT \`FK_d98cc02c1c2f9830afcb1493b00\` FOREIGN KEY (\`posMasterTempId\`) REFERENCES \`employeeTempPosMaster\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`employeePosition\` DROP FOREIGN KEY \`FK_d98cc02c1c2f9830afcb1493b00\``);
}
}