D1 And Supabase Migrations

Use when applying Cloudflare D1 migrations, fighting Supabase migration history vs SQL execution, choosing direct psql over CLI, designing idempotent migrations, debugging schema drift between local and remote, or recovering after a half-applied migration. Triggers: supabase migration repair instructions appearing, table missing after "applied" status, "Tenant or user not found" when running psql, --remote vs --local D1 confusion, NOT NULL on a populated column, foreign key constraint failures, drift between staging and prod schemas. NOT for Mongo/document migrations, ORM-managed migrations specifically (Prisma/Drizzle have their own conventions), or pure data backfills.

curiositech Updated 10 repo stars

File contents

curiositech/windags-skills/tree/main/skills/d1-and-supabase-migrations commit ad6f2a73bb

Frequently asked questions

npx skillmds@latest add curiositech/d1-and-supabase-migrations