Open odarriba opened 9 months ago
I have the same issue - please assist!
Figured out the problem, when accessing the schema, it needs to be:
const oldSupabaseRestClient = createClient(OLD_PROJECT_URL, OLD_PROJECT_SERVICE_KEY, {
schema: 'storage',
})
@supabase team, can you update the docs on this?
same problem
same problem with TS project
Bug report
Describe the bug
I am moving all contents from a Supabase server to another. I have exported the roles, schema and data, and inserted it again in the new server.
After that, I had to move the storage blobs from the bucket of the previous server to the new one, as indicated on this:
https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects#migrate-storage-objects
But when I do, it fails on the step of obtaining the objects list from the previous DB. Inspecting the error returned I can see it fails because of this:
and taking into account the script is selecting the schema
storage
for that oldSupabaseRestClient variable initialization, it does not make any sense.I tried changing the name of the schema in the initialization in case it is just protecting
storage
but the error remains the same: always trying to accesspublic
.To Reproduce
Have two instances and try to run the script on that docs page.
Expected behavior
Be able to get the list of files and continue with the migration
Screenshots
-
System information
Additional context
-