mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
Prevents agents from using apply_migration or DDL via execute_sql, which breaks CI by creating remote migration entries without local files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
816 B
816 B
AGENTS
Verification
- npm test (runs mobile Jest suite)
- npm run lint
- npm run typecheck
- npm run build
Database Migrations - MANDATORY RULES
NEVER use mcp__sauci-prod__apply_migration or mcp__sauci-non-prod__apply_migration. These create migration records in the remote database without local files, which breaks CI/CD deployments.
NEVER run DDL (CREATE, ALTER, DROP) via mcp__*__execute_sql. This changes the schema with no migration tracking.
All schema changes must be local migration files:
- Run
supabase migration new <name>to create the file - Edit the file in
apps/supabase/migrations/ - Use idempotent SQL (
IF NOT EXISTS,CREATE OR REPLACE) - Commit the file — CI deploys it automatically
execute_sql is ONLY for SELECT queries. No exceptions.