Skip to content

Commit 02db183

Browse files
authored
Merge pull request #2013 from bcgov/feature/ALCS-2092-fix-date-filed-name
ALCS-2092 Fix the data field name
2 parents 5c0f3f6 + 9169fee commit 02db183

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { MigrationInterface, QueryRunner } from "typeorm";
2+
3+
export class FixConditionTypeDateField1734024626850 implements MigrationInterface {
4+
5+
public async up(queryRunner: QueryRunner): Promise<void> {
6+
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')`);
7+
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')`);
8+
}
9+
10+
public async down(queryRunner: QueryRunner): Promise<void> {
11+
// N/A
12+
}
13+
14+
}

0 commit comments

Comments
 (0)