Skip to content

Commit

Permalink
Merge pull request #1764 from bcgov/feature/ALCS-1972
Browse files Browse the repository at this point in the history
Remove dates from RFFG for select file numbers
  • Loading branch information
trslater authored Jun 17, 2024
2 parents 2c72426 + 04e8b0e commit 3668666
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class RemoveRffgFromSelectFiles1718645937227
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(`
UPDATE alcs.application_submission_to_submission_status astss
SET effective_date = NULL, email_sent_date = NULL
FROM alcs.application_submission as2
WHERE astss.submission_uuid = as2."uuid"
AND astss.status_type_code = 'RFFG'
AND as2.file_number IN ('66716', '11073')
`);
}

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

0 comments on commit 3668666

Please sign in to comment.