Files
delphi-database-v2/data-import/rvarlkup_74f19c2a-bd39-40b6-8ea3-df88976b029f.csv
HotSwapp 63809d46fb Fix PHONE.csv import duplicate constraint error
- Implement upsert logic in import_phone() function
- Check for existing (id, phone) combinations before insert
- Track duplicates within CSV to skip gracefully
- Update existing records instead of failing on duplicates
- Add detailed statistics: inserted, updated, skipped counts
- Align with upsert pattern used in other import functions
- Add documentation in docs/PHONE_IMPORT_FIX.md

Fixes: UNIQUE constraint failed: phone.id, phone.phone error
when re-importing or uploading CSV with duplicate entries
2025-10-12 21:45:30 -05:00

979 B

1IdentifierQuery
2AGEAge (31)?
3COUNTY_OF_RESCounty of residence/practice?
4EDUCATIONHighest grade completed?
5EMPLOYED_ASOccupation?
6EMPLOYER_A1Employer's street address - 1st line?
7EMPLOYER_A2Employer's street address - 2nd line?
8EMPLOYER_CSZEmployer's city, state and zip code?
9EMPLOYER_NAMEName of Employer?
10FIRM_NAMEName of law office?
11GENDERGender (Male, Female)?
12HE/SHEHe or she for subject?
13HIM/HERHim or her for subject?
14HIS/HERHis or her for subject?
15INITSInitials (WJS)?
16LCEPLife Cycle Earnings Pattern Age Category?
17LELife expectancy (22.4)?
18NOT_EXPIRESNotary's comm. (is permanent,expires on ##/##/##)?
19NOT_NAMENotary's full name (Bob E. Smith)?
20NOT_STNotary's state of commission (Wisconsin)?
21POSS_FORMPossessive form of subject's last name (','s)?
22RACESubject's race (White)?
23SB#State Bar Number?
24SEC_INITSSecretary's Initials (ih)?
25SEC_NAMESecretary's full name (Irene Holly)?
26WLEWorklife expectancy (13.5)?