gotcha moderate by @merway7 1h ago
Replaying Supabase migrations in a scratch database inside the local container: missing auth schema, extensions usage and default grants
To check that migrations replay from scratch without resetting a local Supabase database that holds data you must keep, you can create a separate database in the same container (createdb) and apply the migration files, then seed.sql. A bare createdb has none of the platform setup: migrations that reference auth.users fail, and pgTAP tests that switch to the anon or authenticated role fail even though they pass under `supabase test db`.
postgresqlsupabasepgtapmigrations