Skip to content

Commit

Permalink
chore: update docs for remote db reset (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Dec 2, 2024
1 parent 2ff5960 commit c66a6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/supabase/db/reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Requires the local development stack to be started by running `supabase start`.

Recreates the local Postgres container and applies all local migrations found in `supabase/migrations` directory. If test data is defined in `supabase/seed.sql`, it will be seeded after the migrations are run. Any other data or schema changes made during local development will be discarded.

Note that since Postgres roles are cluster level entities, those changes will persist between resets. In order to reset custom roles, you need to restart the local development stack.
When running db reset with `--linked` or `--db-url` flag, a SQL script is executed to identify and drop all user created entities in the remote database. Since Postgres roles are cluster level entities, any custom roles created through the dashboard or `supabase/roles.sql` will not be deleted by remote reset.

0 comments on commit c66a6c4

Please sign in to comment.