Skip to content

Commit 2646c1b

Browse files
authored
Merge pull request #2009 from bcgov/feature/alcs-2092-new-migration-to-add-fee
Feature/alcs 2092 new migration to add fee
2 parents 9699480 + a1c0725 commit 2646c1b

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 AddDateAndAdminFee1733163698882 implements MigrationInterface {
4+
5+
public async up(queryRunner: QueryRunner): Promise<void> {
6+
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')`);
7+
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')`);
8+
}
9+
10+
public async down(queryRunner: QueryRunner): Promise<void> {
11+
// N/A
12+
}
13+
14+
}

0 commit comments

Comments
 (0)