From 947d995c83b1eb9590c3aad6c64f66281763e5dd Mon Sep 17 00:00:00 2001 From: Felipe Barreta Date: Thu, 28 Nov 2024 11:26:57 -0800 Subject: [PATCH 1/2] ALCS-2092 Create migration --- .../1732821130867-add_due_date_to_conditions.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts b/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts new file mode 100644 index 000000000..255567f83 --- /dev/null +++ b/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class AddDueDateToConditions1732821130867 implements MigrationInterface { + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`UPDATE "alcs"."application_decision_condition_type" SET "is_single_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_single_date_checked" = true, "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`); + } + + public async down(queryRunner: QueryRunner): Promise { + } + +} From 9faab6d934a818ede6033d651906f08667761013 Mon Sep 17 00:00:00 2001 From: Felipe Barreta Date: Thu, 28 Nov 2024 12:03:28 -0800 Subject: [PATCH 2/2] ALCS-2092 Add na comment --- .../migrations/1732821130867-add_due_date_to_conditions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts b/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts index 255567f83..308abb014 100644 --- a/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts +++ b/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts @@ -8,6 +8,7 @@ export class AddDueDateToConditions1732821130867 implements MigrationInterface { } public async down(queryRunner: QueryRunner): Promise { + // N/A } }