Function: planMigration()
function planMigration(
sub,
fromDef,
toDef,
plan?
): MigrationDryRun;
Defined in: packages/core/src/migrate/apply.ts:317
What migrateSubmission would do, without doing it.
This is what turns a publish dialog from "are you sure?" into "this orphans 340 answers across 12 drafts" — a sentence an author can actually act on.
Parameters
| Parameter | Type |
|---|---|
sub | Submission |
fromDef | FormDefinition |
toDef | FormDefinition |
plan? | MigrationPlan |