SupabaseS
Supabase3mo ago
Grant

Supabase Error: ERROR: column "public" of relation "buckets" does not exist

We're seeing a strange error after upgrading our npm supabase package from v2.40.1 to v2.45.5 (for compliance reasons).

Our CI is broken and we're unable to proceed work.

We cannot run supabase locally.

Applying migration 20250320010804_add_file_hash_sync_local_remote.sql...
Applying migration 20250321022805_storage_bucket_creation_and_rls.sql...
Stopping containers...
ERROR: column "public" of relation "buckets" does not exist (SQLSTATE 42703)
At statement: 0                                                             
-- Create the migration-blobs bucket                                        
insert into storage.buckets                                                 
  (id, name, public, file_size_limit)                                       
             ^                                                              
Try rerunning the command with --debug to troubleshoot the error.


We have previous db migrations such as 20250321022805_storage_bucket_creation_and_rls.sql:

-- Create the migration-blobs bucket
insert into storage.buckets
  (id, name, public, file_size_limit)
select *
from ( values ('migration-blobs', 'migration-blobs', false, 5368709120) ) as data(id, name, public, file_size_limit)
where not exists (select 1
                  from storage.buckets
                  where id = data.id);


What do we do? What version of supabase is the hosted version running so we can match that version locally?
Was this page helpful?