Skip to content

Commit

Permalink
Merge pull request #2009 from bcgov/feature/alcs-2092-new-migration-t…
Browse files Browse the repository at this point in the history
…o-add-fee

Feature/alcs 2092 new migration to add fee
  • Loading branch information
fbarreta authored Dec 11, 2024
2 parents 9699480 + a1c0725 commit 2646c1b
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 AddDateAndAdminFee1733163698882 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
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<void> {
// N/A
}

}

0 comments on commit 2646c1b

Please sign in to comment.