convex-migrate

Migriere das Schema und fülle Daten in einer bereitgestellten Convex-App mit @convex-dev/migrations nach.

npx skills add https://github.com/get-convex/agent-skills --skill convex-migrate

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

  1. Make the new field optional first (so deploy doesn't reject existing rows).
  2. Install @convex-dev/migrations; write a migration that backfills/transforms existing rows.
  3. Run the migration; verify all rows are valid.
  4. 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.

Mehr Skills von get-convex

convex-performance-audit
get-convex
Prüft die Convex-Leistung für Lesevorgänge, Abonnements, Schreibkonflikte und Funktionsgrenzen. Verwenden Sie dies bei langsamen Funktionen, Erkenntnissen, OCC-Konflikten oder Leseamplifikation.
developmentdatabasedata-analysis
convex
get-convex
Leitet allgemeine Convex-Anfragen an die richtige Projekt-Fähigkeit weiter. Verwenden, wenn der Benutzer fragt, welche Convex-Fähigkeit verwendet werden soll, oder eine unzureichend spezifizierte Convex-App-Aufgabe angibt.
developmentdatabase
convex-setup-auth
get-convex
Richtet Convex-Authentifizierung, Identitätszuordnung und Zugriffskontrolle ein. Verwenden für Login, Authentifizierungsanbieter, Benutzertabellen, geschützte Funktionen oder Rollen in einer Convex-App.
developmentdatabaseapi
convex-quickstart
get-convex
Erstellt oder fügt Convex zu einer App hinzu. Verwenden für neue Convex-Projekte, npm create convex@latest, Frontend-Setup, Umgebungsvariablen oder den ersten npx convex dev-Durchlauf.
developmentdatabase
convex-migration-helper
get-convex
Plant Convex-Schema- und Datenmigrationen mit widen-migrate-narrow und @convex-dev/migrations. Verwenden für breaking Schemaänderungen, Backfills, Tabellenumstrukturierungen oder Rollouts ohne Ausfallzeiten.
developmentdatabase
convex-create-component
get-convex
Erstellt wiederverwendbare Convex-Komponenten mit isolierten Tabellen und anwendungsorientierten APIs. Verwenden für neue Komponenten, wiederverwendbare Backend-Module, Integrationen oder Arbeiten an Komponentengrenzen.
developmentdatabase
convex-optimize
get-convex
Auditieren und optimieren einer bestehenden Convex-App: Sicherheit, Skalierung, Upgrades, Beobachtbarkeit.
convex-env
get-convex
Convex-Deployment-Env-Vars / Secrets für die App festlegen und verdrahten.