Skip to content

Commit

Permalink
Merge pull request #2013 from bcgov/feature/ALCS-2092-fix-date-filed-…
Browse files Browse the repository at this point in the history
…name

ALCS-2092 Fix the data field name
  • Loading branch information
fbarreta authored Dec 12, 2024
2 parents 5c0f3f6 + 9169fee commit 02db183
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 FixConditionTypeDateField1734024626850 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`UPDATE "alcs"."application_decision_condition_type" SET "is_date_checked" = true, "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`);
await queryRunner.query(`UPDATE "alcs"."notice_of_intent_decision_condition_type" SET "is_date_checked" = true, "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`);
}

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

}

0 comments on commit 02db183

Please sign in to comment.