Skip to content

Commit

Permalink
Merge pull request #1968 from bcgov/feature/ALCS-2347
Browse files Browse the repository at this point in the history
Answer 'No' to existing soil apps
  • Loading branch information
trslater authored Nov 8, 2024
2 parents 3246bbd + 7e0a59e commit adc071f
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AnswerNoToStructuresForOldSoilApps1731100639156 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(`
update
alcs.application_submission as2
set
soil_is_new_structure = false
where
as2.type_code in ('PFRS', 'POFO', 'ROSO')
and as2.soil_is_new_structure is null;
`);
}

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

0 comments on commit adc071f

Please sign in to comment.