Skip to content

Commit 7c76ee6

Browse files
committed
System Touch
1 parent e9b32b6 commit 7c76ee6

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

db/fallback/2026-06-06/N21.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@
2525
<promissory_note>0.0</promissory_note>
2626
<created_at>Sat Jun 06 15:02:56 EDT 2026</created_at>
2727
</record>
28+
<record table="national_finance_ids" ts="2026-06-06T19:16:00.462326881Z">
29+
<national_id>73058825</national_id>
30+
<remote_address>/127.0.0.1:38502</remote_address>
31+
<iq>259</iq>
32+
<education_level>Masters</education_level>
33+
<social_skills>100</social_skills>
34+
<equipment>Communications</equipment>
35+
<trust_level>100</trust_level>
36+
<parent_one>Max Rupplin</parent_one>
37+
<parent_two>X</parent_two>
38+
<suspects>Masters of Science is Adequate</suspects>
39+
<social_spotting>High Demography</social_spotting>
40+
<promissory_note>0.0</promissory_note>
41+
<created_at>Sat Jun 06 15:15:08 EDT 2026</created_at>
42+
</record>

source/db/N21Store.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ public static void storeNationalFinanceID(national.NationalFinanceID n)
150150
{
151151
try
152152
{
153+
// Satisfy the FK: ensure the eight_digit_id exists in national_ids first.
154+
// Uses a placeholder sixteen_digit_key of 0 when none is provided.
155+
PreparedStatement pi = N21DataSource.get().prepareStatement(
156+
"INSERT IGNORE INTO national_ids (eight_digit_id, sixteen_digit_key) VALUES (?,0)");
157+
pi.setLong(1, n.nationalId);
158+
pi.executeUpdate(); pi.close();
159+
153160
PreparedStatement ps = N21DataSource.get().prepareStatement(
154161
"INSERT INTO national_finance_ids " +
155162
"(national_id, remote_address, iq, education_level, social_skills, equipment, " +

0 commit comments

Comments
 (0)