supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.02k stars 201 forks source link

`_supavisor` schema tables deleted when running `db reset` #2524

Closed bombillazo closed 1 month ago

bombillazo commented 2 months ago

Describe the bug

Running supabase db reset deletes the tables in the _supavisor schema, causing issues running the local stack.

To Reproduce Steps to reproduce the behavior:

  1. Run supabase start
  2. Run supabase db reset

After the reset, the _supavisor tables no longer exist.

Expected behavior Resetting db keeps all expected schemas. To fix the issue we need to stop/start the stack to restore the schema.

System information Rerun the failing command with --create-ticket flag.

Additional context If applicable, add any other context about the problem here.

bombillazo commented 1 month ago

Any updates here? It's becoming pretty disruptive for our developers, especially our juniors.

sweatybridge commented 1 month ago

Thanks for the reminder. The fix will go into the stable release tomorrow.