docs(rules): migrations run on the throwaway sandbox first (LRN-080 promotion)

This commit is contained in:
bchanot committed 2026-11-14 19:16:40 +01:00
1 parent 5c3661963f
commit 2d7f4c16ed
1 file changed
+2
+2
View File
@@ -15,6 +15,8 @@ paths: ["supabase/migrations/**", "supabase/tests/**", "packages/supabase/**", "
from public and granted only to the roles that evaluate them.
- A migration is never edited once applied. Each migration ships its pgTAP file with
allowed AND denied cases, and a regenerated `database.types.ts`.
- Every migration step runs first on the throwaway sandbox (`pnpm db:sandbox`,
`scripts/db-sandbox.sh`), never against DEV; changes to DEV stay owner actions (LRN-080).
- The browser holds the anon key only. The `service_role` key value never appears in env.js, .env.example or code;
operator scripts under `packages/*/scripts/` read it from the environment and are never bundled.
- pgTAP files run on PGlite and on the real image: scope counts to fixture ids, pin `collate "C"` on text ordering.