a7c11f2c51b56cadfd6dd282af15c4e1ce62ec9e
reconcile-migration.ts: read-only cross-check of EVERY migrated record vs its legacy source (via the ledger) — coverage (nothing dropped), field fidelity (independently re-derives stage/eoiStatus/documensoId/berth/email), and relationship integrity (orphans, dangling FKs). connect-berth-links.ts: the dedup pipeline migrated only the single per-interest Berth Number text field and missed the legacy _nc_m2m_Berths_Interests junction (multi-berth deals) — 57 deals were missing links. Reads the junction from the nocodb_legacy snapshot, resolves interest + berth via the ledger, inserts the missing interest_berths rows (idempotent; respects the one-primary partial unique index). Inserted 74 links, 51 new primaries. After the fix: reconciliation = 0 discrepancies across all 255 deals, 165 expenses, 45 residential. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
98.7%
HTML
1%
CSS
0.1%
Shell
0.1%