Skip to content

Commit 15c11c1

Browse files
committed
Enable required security amount for bond condition type
1 parent fd4883f commit 15c11c1

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 EnableRequiredSecuityAmountForBondConditionType1734646507149 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 = true,
11+
is_security_amount_required = true
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 = true,
22+
is_security_amount_required = true
23+
where
24+
code = 'BOND';
25+
`);
26+
}
27+
28+
public async down(queryRunner: QueryRunner): Promise<void> {}
29+
}

0 commit comments

Comments
 (0)