Skip to content

Commit fd4883f

Browse files
committed
Disable security amount for non-bond condition types
1 parent 824658d commit fd4883f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { MigrationInterface, QueryRunner } from 'typeorm';
2+
3+
export class DisableSecurityAmountForAllNonBondConditionTypes1734646226612 implements MigrationInterface {
4+
public async up(queryRunner: QueryRunner): Promise<void> {
5+
// Apps
6+
queryRunner.query(`
7+
update
8+
alcs.application_decision_condition_type
9+
set
10+
is_security_amount_checked = false,
11+
is_security_amount_required = false
12+
where
13+
code <> 'BOND';
14+
`);
15+
16+
// NOI's
17+
queryRunner.query(`
18+
update
19+
alcs.notice_of_intent_decision_condition_type
20+
set
21+
is_security_amount_checked = false,
22+
is_security_amount_required = false
23+
where
24+
code <> 'BOND';
25+
`);
26+
}
27+
28+
public async down(queryRunner: QueryRunner): Promise<void> {}
29+
}

0 commit comments

Comments
 (0)