© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago
kyuliawantyelus

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
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
supabase migration list
before and after creating the
staging
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
supabase migration repair --status reverted 20250818233122

- Deleting the migration entry from prod db with
delete from supabase_migrations.schema_migrations where version = 'xxx';
delete from supabase_migrations.schema_migrations where version = 'xxx';


But every time I run
supabase --experimental branches create --persistent staging
supabase --experimental branches create --persistent staging
I get the migration.
image.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Branching and how migrations are handled.
SupabaseSSupabase / help-and-questions
6mo ago
Local <--> Remote Migrations Help
SupabaseSSupabase / help-and-questions
3y ago
Remote has more migrations then local
SupabaseSSupabase / help-and-questions
5mo ago
supabase db pull created a remote_schema migration that undoes many of my new migrations
SupabaseSSupabase / help-and-questions
13mo ago