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
This commit is contained in:
26438
data-import/phone_a1f58308-0e47-4d21-a46e-42fb0d8be0a3.csv
Normal file
26438
data-import/phone_a1f58308-0e47-4d21-a46e-42fb0d8be0a3.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user