© 2026 Hedgehog Software, LLC

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

Error syncing auth and storage schemas from remote to local

I need to synchronize the local database with the remote one. I have executed the following commands:

supabase db pull
supabase db push --local
supabase db pull
supabase db push --local


Ok. The operation was successful.
After I executed:

supabase db pull --schema storage
supabase db push --local
supabase db pull --schema storage
supabase db push --local


ERROR: permission denied for schema storage (SQLSTATE 42501)        
At statement: 0                                                     
create type "storage"."buckettype" as enum ('STANDARD', 'ANALYTICS')
ERROR: permission denied for schema storage (SQLSTATE 42501)        
At statement: 0                                                     
create type "storage"."buckettype" as enum ('STANDARD', 'ANALYTICS')


How should I proceed?
The need arises from the fact that I have a “data-only” dump that errors when I try to push it locally because it tells me:

psql:supabase/dumps/dump1.sql:530: ERROR:  column "type" of relation "buckets" does not exist
LINE 1: ...le_size_limit", "allowed_mime_types", "owner_id", "type") VA...
                                                             ^
psql:supabase/dumps/dump1.sql:570: ERROR:  column "level" of relation "objects" does not exist
LINE 1: ...etadata", "version", "owner_id", "user_metadata", "level") V...
                                                             ^
psql:supabase/dumps/dump1.sql:589: ERROR:  relation "storage.prefixes" does not exist
LINE 1: INSERT INTO "storage"."prefixes" ("bucket_id", "name", "crea...
psql:supabase/dumps/dump1.sql:530: ERROR:  column "type" of relation "buckets" does not exist
LINE 1: ...le_size_limit", "allowed_mime_types", "owner_id", "type") VA...
                                                             ^
psql:supabase/dumps/dump1.sql:570: ERROR:  column "level" of relation "objects" does not exist
LINE 1: ...etadata", "version", "owner_id", "user_metadata", "level") V...
                                                             ^
psql:supabase/dumps/dump1.sql:589: ERROR:  relation "storage.prefixes" does not exist
LINE 1: INSERT INTO "storage"."prefixes" ("bucket_id", "name", "crea...


Can anyone help me?
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

Syncing storage buckets to prod
SupabaseSSupabase / help-and-questions
8mo ago
Remote Project To Local
SupabaseSSupabase / help-and-questions
7mo ago
Supabase uses remote Storage Bucket instead of local
SupabaseSSupabase / help-and-questions
8mo ago
Auth token is stored in local storage?
SupabaseSSupabase / help-and-questions
3y ago