What problem does it solve? Managing a two-project Supabase setup with dozens of manually applied SQL migration files is error-prone: files live in three different locations, one critical DDL file sits outside the numbered sequence, and PostgREST caches the schema until notified. This Skill encodes the authoritative migration order, sandbox-first workflow, and known traps so schema changes are applied consistently and safely. ## Core Features & Use Cases - Authoritative migration order: Lists all Layer 1 patch files, dated docs/migrations, and backend/migrations in exact replay order, including the out-of-sequence notifications/exchange_rates DDL that is easy to miss on sandbox reset. - Safe migration procedures: Sandbox-first workflow, SELECT-preview before data-mutating changes, mandatory NOTIFY pgrst schema reload, and named backup-table convention before destructive operations. - Diagnostics and schema inventory: Key table inventory with creating migration, atomic RPC functions for ID allocation, seed/cleanup script usage, and fixes for known incidents like 503 errors from missing RPCs and SePay timezone double-shifts. - Use Case: After resetting the sandbox environment, replay the full migration history in the documented order, seed nhan_su_sale, and verify RPC functions exist before pointing the backend at the fresh database. ## Quick Start Apply the pending migration file to the sandbox Supabase project, end it with NOTIFY pgrst reload schema, and verify the new column exists before touching production.