https://supabase.com/ logo
Join Discord
Powered by
# help
  • k

    kvnam

    02/21/2022, 10:44 PM
    Prisma with Supabase Auth
  • c

    connection01

    02/22/2022, 1:43 AM
    I created 2 tables, table 2 has foreign key to table 1 both has id primary key auto increment. Then I inserted around 900 rows to both from SQL EDITOR so my id columns is already 900+ Now I am using supabase-py to insert new rows.
    Copy code
    supabase.from(table_name).insert(json={'name': 'test'}).execute()
    It fails with following error:
    Copy code
    postgrest_py.exceptions.APIError: {'message': 'duplicate key value violates unique constraint "model_pkey"', 'code': '23505', 'details': 'Key (id)=(58) already exists.', 'hint': None}
    Every time I run the script the primary key in error increments with 1
  • s

    statico

    02/22/2022, 5:11 AM
    question about the development flow - it looks like local development doesn't support storage, but the new CLI migration tools don't support two databases in the cloud (e.g. using a supabase.com project as the dev environment). any ideas which direction to choose?
    o
    • 2
    • 1
  • g

    gabydd

    02/22/2022, 6:01 AM
    I am pretty sure local development (if you mean docker) does support storage, it is just not available in the studio so you need to use supabase-js or one of the other SDKs to create buckets and such. By default it uses the file system as a storage service in local development but you can use s3 instead.
  • s

    statico

    02/22/2022, 6:32 AM
    oh, interesting. ok, i'll give it a try. maybe all buckets are public by default since it's development.
  • j

    joshcowan25

    02/22/2022, 6:35 AM
    Is it better to have more API calls or more data to search? I'm working on a web directory where we use a lot of metadata (we use Dublin Core). For example, we have a table for authors, subject, geographical coverage, format and types, but since it's a many-to-many relation, we have to create some "link table", right? But, we will have to do more calls to the API to get everything we need to build the web page. In that situation, is it better to get info from 5 different tables or should we create a "relations" table with foreign relations for every table at once (meaning there would be 4 null out of 5 for each row). How do you deal with your many-to-many relationship?
    s
    • 2
    • 2
  • i

    intuit

    02/22/2022, 8:22 AM
    Hi will the Optimized database instances for $50/month help us make our queries faster under heavy load?
  • d

    dercobrakaiser

    02/22/2022, 10:18 AM
    Hello guys is this new and not documented yet @supabase/supabase-auth-helpers
    s
    t
    • 3
    • 8
  • s

    silentworks

    02/22/2022, 10:37 AM
    Auth helpers
  • f

    fengkx

    02/22/2022, 12:55 PM
    Hi, I have serval project in my account. I wonder Why some projects support more postgres extensions than other
    s
    • 2
    • 5
  • d

    DIABLO

    02/22/2022, 3:23 PM
    guys can anyone tell me how to get the user id in flutter
  • d

    DIABLO

    02/22/2022, 3:24 PM
    this one
  • u

    user

    02/22/2022, 3:28 PM
    Hi! I am trying to setup supabase to evaluate it on a droplet and thought I could use the supabase/postgres repo to install a database locally. Should I be using the ansible playbook to do so? It doesn't seem to run on x86_64 very well (osquery only had arm package defined, now its complaining about CFLAGS even though I see a check for arm and x86_64 version of the task right below it)
  • u

    user

    02/22/2022, 3:28 PM
    is this the right way to go about it if i don't want to run the postgres in a container?
  • s

    Steve

    02/22/2022, 3:30 PM
    many-to-many
  • t

    thewebbeckons

    02/22/2022, 3:32 PM
    Hi, 👋 , Wondering if there is a way to effectively "deactivate" a user on the supabase auth system; we want to keep the user intact but just stop login.
    c
    • 2
    • 5
  • s

    statico

    02/22/2022, 5:55 PM
    fwiw, storage does work locally, but only somewhat.
    download()
    works but
    getPublicURL()
    doesn't
  • g

    gabydd

    02/22/2022, 6:27 PM
    If you made sure to make your buckets public then you could probably ask in the supabase GitHub discussions about that cause you have a better chance of getting a response from a developer or someone who knows more about supabase storage then me
  • w

    warlic

    02/22/2022, 7:04 PM
    Hi I am trying to self host supabase and tried to run the docker container
  • w

    warlic

    02/22/2022, 7:04 PM
    However I am getting this error
  • w

    warlic

    02/22/2022, 7:04 PM
    Can someone please help, thank you!
  • g

    gabydd

    02/22/2022, 8:57 PM
    Can I see your .env maybe there is something wrong there
  • v

    Village

    02/23/2022, 4:08 AM
    Is app.supabase.io open source?
  • g

    gabydd

    02/23/2022, 4:09 AM
    yep: https://supabase.com/blog/2021/11/30/supabase-studio
  • g

    gabydd

    02/23/2022, 4:10 AM
    not all the functionality of app.supabase.io is exposed though
  • w

    warlic

    02/23/2022, 5:42 AM
    Hi gabydd, here is my .env
  • w

    warlic

    02/23/2022, 5:43 AM
    from the .env.example I only changed the POSTGRES_PASSWORD
  • w

    warlic

    02/23/2022, 5:43 AM
    and the JWT_SECRET
  • w

    warlic

    02/23/2022, 5:43 AM
    everything else is the same as the example
  • g

    gabydd

    02/23/2022, 5:49 AM
    Ah try to do it without the @ maybe and see if that works for the password
1...227228229...316Latest