w14n
08/02/2021, 9:52 PMjavascript
"The schema must be one of the following: public, storage"
I added the new schema to Extra search path
I also tried running all of those commands:
sql
create schema private AUTHORIZATION postgres;
grant usage on schema private to postgres, anon, authenticated, service_role;
grant create on schema private to postgres, anon, authenticated, service_role;
All of this doesn't work 😕
Can someone tell me what I'm missing to access my custom schema?burggraf
08/03/2021, 12:20 AMburggraf
08/03/2021, 12:36 AMconst supabase = createClient(supabaseUrl, supabaseKey, {
schema: "private",
});
burggraf
08/03/2021, 12:36 AMpublic
schemaburggraf
08/03/2021, 12:37 AMburggraf
08/03/2021, 12:50 AMw14n
08/03/2021, 8:54 AMjavascript
{schema: "private"}
This caused the error
javascript
"The schema must be one of the following: public, storage"
Now that you mentioned, I can only access one schema from a given client connection, I tried creating a separate client for just private and one for public. But I'm still getting the error.w14n
08/03/2021, 8:56 AMburggraf
08/03/2021, 1:14 PM