Skip to content

Commit 8d16638

Browse files
committed
update sql scripts according to changes in MTFH reshape files
1 parent 2868f0b commit 8d16638

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

scripts/helpers/housing_nec_migration_gx_dq_inputs.py

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@
33
"tenancies": {"id_field": "LTCY_ALT_REF"},
44
"people": {"id_field": "LPAR_PER_ALT_REF"},
55
"contacts": {"id_field": "LCDE_LEGACY_REF"},
6+
"arrears_actions": {"id_field": "LACA_PAY_REF"},
7+
"revenue_accounts": {"id_field": "LRAC_PAY_REF"},
8+
"transactions": {"id_field": "LTRN_ALT_REF"},
9+
"addresses": {"id_field": "LAUS_LEGACY_REF"}
610
}
711

8-
data_load_list = ["properties", "tenancies", "people", "contacts", "arrears_actions"]
12+
data_load_list = [
13+
"properties",
14+
"tenancies",
15+
"people",
16+
"contacts",
17+
"arrears_actions",
18+
"revenue_accounts",
19+
"transactions",
20+
"addresses",
21+
]
922

1023
table_list = {
1124
"properties": [
@@ -31,7 +44,26 @@
3144
],
3245
"people": ["people_1a", "people_1b", "people_1c", "people_2a", "people_all"],
3346
"contacts": ["contacts_1a", "contacts_1b", "contacts_2a", "contacts_all"],
34-
"arrears_actions": ["arrears_actions_1a", "arrears_actions_1c", "arrears_actions_2a"],
47+
"arrears_actions": [
48+
"arrears_actions_1a",
49+
"arrears_actions_1c",
50+
"arrears_actions_2a",
51+
],
52+
"revenue_accounts": [
53+
"revenue_accounts_1a",
54+
"revenue_accounts_1b_sc",
55+
"revenue_accounts_1c",
56+
"revenue_accounts_2a",
57+
"revenue_accounts_other",
58+
],
59+
"transactions": [
60+
"transactions_1a",
61+
"transactions_1c",
62+
"transactions_2a",
63+
"transactions_other",
64+
"transactions_all",
65+
],
66+
"addresses": ["addresses_1a", "addresses_2a"],
3567
}
3668

3769
partition_keys = ["import_date"]

0 commit comments

Comments
 (0)