DBF files are forgiving in ways that relational databases are not. Empty dates, mixed types, duplicate keys and names with trailing spaces all exist in real archives.

I start with a profiling script: row counts per table, distinct values for coded fields, orphaned foreign keys, and the top twenty characters that break UTF-8 conversions. That output becomes the migration test suite.

Next I load into a staging schema with generous types, then tighten constraints table by table. Every tranche ends with a reconciliation report — totals per month, per branch, per account — signed off by the person who owns the numbers.

Only then do we point the application at PostgreSQL. The old system stays readable for a full accounting cycle, because trust is part of the deliverable.