Avoid remote migrations being created when branching?

I use Drizzle to manage my migrations so I don't need to run any migrations with Supabase. I'm trying to create a staging branch, but every time I do Supabase runs its own migrations, even when I revert any existing ones that get added.

Screenshot is me running supabase migration list before and after creating the staging branch.

How can I avoid this remote migration from being created + run? What I've tried:
  • Reverting the remote migration with supabase migration repair --status reverted 20250818233122
  • Deleting the migration entry from prod db with delete from supabase_migrations.schema_migrations where version = 'xxx';
But every time I run supabase --experimental branches create --persistent staging I get the migration.
image.png
Was this page helpful?