From 7fb6bb74cd1bac3dde87d4b1faa68531295dcfac Mon Sep 17 00:00:00 2001 From: Tristan Slater <1631008+trslater@users.noreply.github.com> Date: Thu, 12 Sep 2024 08:10:37 -0700 Subject: [PATCH] Update NARU description --- .../1726098613152-update_naru_subtypes.ts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 services/apps/alcs/src/providers/typeorm/migrations/1726098613152-update_naru_subtypes.ts diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1726098613152-update_naru_subtypes.ts b/services/apps/alcs/src/providers/typeorm/migrations/1726098613152-update_naru_subtypes.ts new file mode 100644 index 000000000..33291371f --- /dev/null +++ b/services/apps/alcs/src/providers/typeorm/migrations/1726098613152-update_naru_subtypes.ts @@ -0,0 +1,38 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class UpdateNaruSubtypes1726098613152 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + queryRunner.query(` + update alcs.application_type at + set html_description = 'Choose this option if you are proposing to conduct a non-adhering residential use within the Agricultural Land Reserve under + Section 20.1(2) of the Agricultural Land Commission Act. +

+ Non-adhering residential uses include: + + ' + where at.code = 'NARU'; + `); + } + + public async down(queryRunner: QueryRunner): Promise { + queryRunner.query(` + update alcs.application_type at + set html_description = 'Choose this option if you are proposing to conduct a non-adhering residential use within the Agricultural Land Reserve under + Section 20.1(2) of the Agricultural Land Commission Act. +

+ Non-adhering residential uses include: + + ' + where at.code = 'NARU'; + `); + } +}