From 33600615f34ec25b8f95a82812a219fa533a31e0 Mon Sep 17 00:00:00 2001 From: Tristan Slater <1631008+trslater@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:07:57 -0800 Subject: [PATCH] Move migration dependent on 2312 after 2312 migrations --- .../1733163698882-add_date_and_admin_fee.ts | 14 -------------- .../1733774036308-add_date_and_admin_fee.ts | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 services/apps/alcs/src/providers/typeorm/migrations/1733163698882-add_date_and_admin_fee.ts create mode 100644 services/apps/alcs/src/providers/typeorm/migrations/1733774036308-add_date_and_admin_fee.ts diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1733163698882-add_date_and_admin_fee.ts b/services/apps/alcs/src/providers/typeorm/migrations/1733163698882-add_date_and_admin_fee.ts deleted file mode 100644 index c295ead2fd..0000000000 --- a/services/apps/alcs/src/providers/typeorm/migrations/1733163698882-add_date_and_admin_fee.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { MigrationInterface, QueryRunner } from "typeorm"; - -export class AddDateAndAdminFee1733163698882 implements MigrationInterface { - - public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query(`UPDATE "alcs"."application_decision_condition_type" SET "is_administrative_fee_amount_checked" = true, "date_type" = 'Single', "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`); - await queryRunner.query(`UPDATE "alcs"."notice_of_intent_decision_condition_type" SET "is_administrative_fee_amount_checked" = true, "date_type" = 'Single', "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`); - } - - public async down(queryRunner: QueryRunner): Promise { - // N/A - } - -} diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1733774036308-add_date_and_admin_fee.ts b/services/apps/alcs/src/providers/typeorm/migrations/1733774036308-add_date_and_admin_fee.ts new file mode 100644 index 0000000000..6dc4796348 --- /dev/null +++ b/services/apps/alcs/src/providers/typeorm/migrations/1733774036308-add_date_and_admin_fee.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddDateAndAdminFee1733774036308 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `UPDATE "alcs"."application_decision_condition_type" SET "is_administrative_fee_amount_checked" = true, "date_type" = 'Single', "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`, + ); + await queryRunner.query( + `UPDATE "alcs"."notice_of_intent_decision_condition_type" SET "is_administrative_fee_amount_checked" = true, "date_type" = 'Single', "single_date_label" = 'Due Date' WHERE "code" NOT IN ('SRPT', 'UEND')`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + // N/A + } +}