Closed gregnr closed 11 months ago
For users following the cloud flow and attempting to use:
npx supabase db reset --linked
to reset their remote database, they get the error duplicate key value violates unique constraint "buckets_pkey".
duplicate key value violates unique constraint "buckets_pkey"
Change
insert into storage.buckets (id, name) values ('files', 'files');
to gracefully handle conflicts:
insert into storage.buckets (id, name) values ('files', 'files') on conflict do nothing;
Problem
For users following the cloud flow and attempting to use:
to reset their remote database, they get the error
duplicate key value violates unique constraint "buckets_pkey"
.Solution
Change
to gracefully handle conflicts: