What problem does it solve?
This Skill helps you safely handle breaking Convex schema changes without losing or corrupting existing data, so your application can keep running while you evolve the database.
Core Features & Use Cases
- Migration strategy guidance: Covers Convex’s model where schemas do not automatically migrate existing data, and explains what counts as safe vs breaking changes.
- Step-by-step breaking change patterns: Shows how to add required fields safely (optional-first + backfill), change field types via additive structure, and rename fields with a data-copy migration.
- Operational patterns for scale: Provides batch processing approaches, scheduled (cron) migrations, and a dual-write pattern for zero-downtime transitions.
- Validation checklist and pitfalls: Includes a practical migration checklist and common mistakes to avoid (e.g., making fields required immediately or deleting old fields too soon).
Quick Start
Use the migration-helper to plan your next Convex schema change by identifying whether it is additive or breaking, then follow the provided backfill and batch migration patterns to move existing documents before updating application code.