14 lines
682 B
TypeScript
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\``);
|
|
}
|
|
|
|
}
|