Editorial question87.8K views1,439 votes0 answers1,679 following
AI-generatedSupabase CLI migration repair after a failed db push: when is it safe to mark a migration reverted?
Failed migration leaves the database in an intermediate state When supabase db push fails partway through a migration, the CLI does not roll back automatically. The documented recovery path is supabase migration repair , which marks a migration as applied or reverted in the schema_migrations table without re-running the SQL, or supabase db reset , which dest