Files
Sauci/.codex/skills/db-migration/SKILL.md
T
jjbrunton 01bb8225ae chore(harness): make repository agent-ready
Add concise routed context, task-aware agent roles, focused skills, and structured learning promotion.\n\nUnify local development and workspace tooling, add layered test and E2E verification, harden MCP authentication, and gate deployment behind verification and explicit production promotion.
2026-08-27 20:58:48 +01:00

844 B

name, description
name description
db-migration Create, review, and verify Sauci Supabase schema migrations. Use for tables, columns, functions, policies, indexes, triggers, or other database shape changes.

Sauci database migration

Read apps/supabase/AGENTS.md and docs/operations/database-migrations.md.

  1. Create the local file with npm run db:migration:new -- <name>.
  2. Edit only apps/supabase/migrations/; keep environment-specific URLs dynamic.
  3. Update affected shared/generated contracts and callers in the same task.
  4. Reset local Supabase, run function/RLS tests, and independently inspect the resulting schema/behavior.
  5. Commit the migration file with dependent code. CI performs deployment.

Never call remote apply_migration; never send DDL through MCP SQL execution; never use a remote project for local validation.