
Description
Migrate schema + backfill data on a deployed Convex app using @convex-dev/migrations.
SKILL.md
Migrate the schema / data on a live app
Change a deployed schema without breaking existing data: stage the schema change, install @convex-dev/migrations, write a backfill that makes old rows valid, run it, and verify before tightening the validator.
Workflow
- Make the new field optional first (so deploy doesn't reject existing rows).
- Install @convex-dev/migrations; write a migration that backfills/transforms existing rows.
- Run the migration; verify all rows are valid.
- Tighten the validator (make the field required) once the backfill is complete.
Rules
- Never tighten a validator before the backfill completes — it rejects existing rows and breaks the live app.
- Add new fields as optional first, migrate, then require.
- Verify row counts before and after.
More skills from the agent-skills repository
View all 30 skillsconvex
guide Convex project setup and usage
Aug 4BackendConvexDatabaseconvex-add
add capabilities to Convex applications
Aug 4BackendConvexEngineeringconvex-advisor
analyze Convex deployment performance and costs
Aug 4ConvexCost OptimizationObservabilityPerformanceconvex-agent
add AI agent backends to Convex
Aug 4AgentsConvexLLMRAGconvex-auth
add authentication to Convex applications
Aug 4AuthAuthenticationConvexconvex-backup
configure and test Convex database backups
Aug 4BackupConvexDatabaseReliability
More from Convex
View publisherconvex-billing
integrate Stripe billing in Convex apps
agent-skills
Aug 4ConvexPaymentsStripeconvex-cost
analyze and forecast Convex application costs
agent-skills
Aug 4AnalyticsCost OptimizationPerformanceconvex-create-component
build reusable Convex components
agent-skills
Jul 12API DevelopmentArchitectureBackendConvexconvex-crons
add scheduled cron jobs to Convex
agent-skills
Aug 4AutomationConvexSchedulingconvex-deploy-guard
manage Convex deployment safety and consent
agent-skills
Aug 4ConvexDeploymentOperationsSecurityconvex-design
build reactive backends with Convex
agent-skills
Aug 4AuthBackendConvexDatabase +1