Command Migrate Mart - accelerate-data/migration-utility GitHub Wiki
Execute an approved whole-mart migration plan.
-
/migrate-mart-planproduced a reviewed plan - planning PR and catalog decisions are accepted
- target and sandbox remain reachable
- working repo has no uncommitted blocking changes
/migrate-mart <plan-file>
- attaches the coordinator worktree
- validates the plan metadata
- finds the first incomplete stage
- runs one stage at a time
- merges each stage PR into the coordinator branch
- updates and commits the plan after each stage
- opens or updates the final coordinator PR
At a user level, the command coordinates these stages:
- Profile tables
- Validate or refresh target state
- Validate or refresh sandbox state
- Generate tests
- Refactor source SQL
- Replicate source tables
- Generate dbt models
- Refactor mart layers
- Open the final coordinator PR
Rerun the same command with the same plan file. It resumes from the first incomplete stage and reuses recorded branches and worktrees.
The final coordinator PR is for human review and merge.