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..308abb014 --- /dev/null +++ b/services/apps/alcs/src/providers/typeorm/migrations/1732821130867-add_due_date_to_conditions.ts @@ -0,0 +1,14 @@ +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 { + // N/A + } + +}