id (required) — preserves the original UUID; no auto-generation
lifecycle state fields (status, assignedTo, claimExpiresAt, …) — carry over
the exact state of the migrated row so in-flight escalations land correctly
createdAt / updatedAt — preserve original timestamps
The underlying INSERT uses ON CONFLICT (id) DO NOTHING, so calling
migrate() multiple times with the same ID is safe — subsequent calls
return null without touching the existing row.
Full-fidelity migration params. Extends
CreateEscalationParamswith:id(required) — preserves the original UUID; no auto-generationstatus,assignedTo,claimExpiresAt, …) — carry over the exact state of the migrated row so in-flight escalations land correctlycreatedAt/updatedAt— preserve original timestampsThe underlying INSERT uses
ON CONFLICT (id) DO NOTHING, so callingmigrate()multiple times with the same ID is safe — subsequent calls returnnullwithout touching the existing row.