- 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
699 B
699 B
| 1 | Code | Description | Title |
|---|---|---|---|
| 2 | 1 | client party | |
| 3 | 1A | client's attorney | |
| 4 | 2 | opposing party | |
| 5 | 2A | opposing attorney | |
| 6 | AC | attorney-commercial | Attorney at Law |
| 7 | ACO | attorney-civil only | Attorney at Law |
| 8 | AD | attorney-defense | Attorney at Law |
| 9 | AFO | attorney-family only | Attorney at Law |
| 10 | AG | attorney-general | Attorney at Law |
| 11 | BUS | business related | |
| 12 | COC | Clerk of Court | |
| 13 | EXP | expert witness | |
| 14 | FCC | Commissioner | Family Court Commissioner |
| 15 | JUDG | Judge | |
| 16 | LGLA | legal assistant | Legal Assistant |
| 17 | OBSLT | obsolete entry | Attorney at Law |
| 18 | PA | plan administrator | Plan Administrator |
| 19 | PAR | paralegal | Paralegal |
| 20 | PEN | pension subect | |
| 21 | PER | personal | |
| 22 | QDRO | QDRO subject | |
| 23 | SPOUS | subject's spouse | |
| 24 | SUB | subject of report | |
| 25 | VOC | vocational consult. |