mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
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.
19 lines
844 B
Markdown
19 lines
844 B
Markdown
---
|
|
name: db-migration
|
|
description: 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.
|