supabase-migrations
SKILL.md
Supabase: Migrations
Guidelines for creating and managing database migrations.
⚠️ CRITICAL RULES
- NEVER manually edit
database.types.ts- auto-generated - ALWAYS run
pnpm sb:dev:typesafter ANY schema change - ALWAYS test locally with
pnpm sb:dev:pushorpnpm sb:dev:resetbefore production
Migration Naming
Pattern: YYYYMMDDHHMMSS_descriptive_name.sql
Examples: 20251106183429_add_projects_table.sql