Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
guidance on how to properly do data migrations in Convex
Sign in to like and favorite skills
Use
@convex-dev/migrations in convex/migrations.ts (reference convex_migrations.md for full guidance). The standard flow is:
migrations.define({ table, migrateOne }) in convex/migrations.ts (idempotent; skip no‑ops; no external APIs).npx convex run migrations:runYourFn '{"dryRun":true,"cursor":null}'npx convex run migrations:runYourFn '{"cursor":null}'*npx convex run --component migrations lib:getStatus --watchnpx convex run --component migrations lib:cancel '{"name":"migrations:yourFnName"}'.*
"cursor":null makes it to real work from the start (as opposed to the dry-run default); omit only when resuming from a specific cursor.