Skip to content

Commit

Permalink
Fix selected ETL missed review deletions
Browse files Browse the repository at this point in the history
- When an app is returned from L/FNG, normally the review is deleted
- This was missed in ETL
- Any apps where a *second* L/FNG review was not yet started will be unable to start, since the old one already exists, creating a foreign key constraint validation
  • Loading branch information
trslater committed Oct 28, 2024
1 parent 2219465 commit 0504330
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class FixEtlMissedDeletingLfgnReviews1730144741773
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(`
delete from alcs.application_submission_review asr
where asr.application_file_number in ('61301', '67497')
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {}
}

0 comments on commit 0504330

Please sign in to comment.