Files
delphi-database-v2/data-import/files_ba4a9c7d-3a2d-49df-841a-69f4c7a5f239.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

309 B

1File_NoIdFile_TypeRegardingOpenedClosedEmpl_NumRate_Per_HourStatusFooter_CodeOpposingHoursHours_PTrust_BalTrust_Bal_PHourly_FeesHourly_Fees_PFlat_FeesFlat_Fees_PDisbursementsDisbursements_PCredit_BalCredit_Bal_PTotal_ChargesTotal_Charges_PAmount_OwingAmount_Owing_PTransferableMemo