The editable id of the Home usps/items rows was also the row's primary key in
PostgreSQL (a duplicate would fail to save; new rows needed a manual id). It
is now the `key` field; migration 20260929_213538_home_row_keys adds the
column and backfills it (main tables from id, version tables from _uuid).
Tried on the staging pg_dump: keys backfilled, second run no-op, all 14
public pages unchanged. React keys use `key`; the transfer upgrades old
bundles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/transfer-content.ts: export (shared config + MongoDB adapter,
locale 'all', drafts, upload files) and import (PostgreSQL, one transaction,
refuses a non-empty target); pure helpers in src/lib/content-transfer.ts
- LegalPages: the section anchor is its own field; as the array row id it was
a table-wide primary key in PostgreSQL and the two pages collided
- Products.status: own enumName; the default name equalled the drafts
_status enum, so only draft/published were accepted
- baseline migration regenerated
Verified on a staging copy (disposable MongoDB + PostgreSQL on llmdev): counts
match, all 14 public pages (hu/en) render identical text, partner logo loads,
second import writes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>