convex-migrations

Manage Convex database schema migrations with backfilling and zero-downtime strategies.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/mihaicrisan04/zalem --skill convex-migrations-mihaicrisan04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-migrations
Source: https://github.com/mihaicrisan04/zalem/tree/main/.agents/skills/convex-migrations
Command: npx skills add https://github.com/mihaicrisan04/zalem --skill convex-migrations-mihaicrisan04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides strategies and patterns for safely evolving your Convex database schema, ensuring data integrity and minimizing downtime during application updates.

Core Features & Use Cases

  • Schema Evolution: Implement patterns for adding, removing, or renaming fields in your Convex tables.
  • Data Backfilling: Safely populate new fields or migrate data during schema changes.
  • Zero-Downtime Migrations: Strategies to update your database schema without interrupting service.
  • Use Case: You need to add a new avatarUrl field to your users table. This Skill guides you through making the field optional, backfilling existing users, and then making the field required.

Quick Start

Use the convex-migrations skill to add a new optional field to your user schema.

Frequently Asked Questions about convex-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely evolve my Convex database schema without downtime?

Safely evolving a Convex database schema without downtime requires implementing specific migration patterns, such as making fields optional first, backfilling data, and then enforcing constraints. This ensures data integrity during application updates.

What is the best way to backfill data when adding a new field to a Convex table?

Backfilling data in a Convex table involves a strategy where you first add the new field as optional, run a migration to populate existing records, and finally update the schema to make the field required. This guarantees no records are left invalid.

How do I handle index and type changes in a Convex database?

Handling index and type changes in a Convex database is managed through a robust migration runner pattern. This approach allows complex schema evolutions to be applied safely in a serverless environment lacking traditional migration tools.

Can I use traditional migration tools with a Convex serverless database?

Traditional migration tools are not used with a Convex serverless database. Instead, you need to implement specific schema evolution strategies and a migration runner pattern to handle adding, removing, or renaming fields safely.

How does a zero-downtime schema migration work in a serverless backend?

Zero-downtime schema migration in a serverless backend works by applying incremental changes: adding optional fields, backfilling existing data, and enforcing new constraints progressively. This prevents service interruptions during database updates.

When should I use a migration runner pattern for Convex database changes?

You should use a migration runner pattern for Convex database changes when dealing with complex schema evolutions like adding, backfilling, and removing fields, or handling index and type changes that require strict data integrity.