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

    garyaustin

    12/03/2021, 11:22 PM
    I'm just throwing this out there with no knowledge of Prisma or migration, but I had issues using datagrip over the Supabase connection (using Postgres user) and doing table change operations (not things in the table). https://discord.com/channels/839993398554656828/902772250791542785 this was the thread someone else found the solution for that. Sorry if this is not even close to what you are encountering, but with weekend coming figured I throw it if no one else comes around. https://github.com/supabase/supabase/issues/3688#issuecomment-953370874 the issue does mention I/O error....
  • t

    Tobbe

    12/03/2021, 11:31 PM
    @User Thanks!
  • t

    Tobbe

    12/03/2021, 11:31 PM
    I tried running those two statements, but get "ALTER SYSTEM cannot run inside a transaction block"
  • t

    Tobbe

    12/03/2021, 11:32 PM
    Am I in the right place trying to run them?
  • g

    garyaustin

    12/03/2021, 11:33 PM
    That is where I would have run it, and it worked, but I can't even swear exactly what I used in the train of tracking it down.... it was from the discord thread though. That was also a ways back and the environment might have changed. Edit: Wild ass guess run one at a time.
  • t

    Tobbe

    12/03/2021, 11:44 PM
    Ha! whaddayaknow. It worked ๐Ÿ™‚
  • t

    Tobbe

    12/03/2021, 11:45 PM
    Now let's try my ALTER statement again
  • t

    Tobbe

    12/03/2021, 11:47 PM
    It worked! Thanks a lot @User!
  • e

    eunjae

    12/04/2021, 9:05 AM
    Hi there, I just read https://supabase.com/blog/2021/07/30/supabase-functions-updates about Supabase Hooks. It seems only newly created projects have access to it. Is there a way to convert my existing project to a new one? Or do I have to set it up again? (Schema, and data, โ€ฆ)
  • l

    laznic

    12/04/2021, 9:28 AM
    You can use
    pg_dump
    to migrate your current project to a new one. https://supabase.com/docs/guides/database#migrating-between-projects
  • l

    laznic

    12/04/2021, 9:28 AM
    That way you don't have to manually create everything again
  • l

    laznic

    12/04/2021, 9:30 AM
    You might have to restart the server after running the migrations so that all the API docs and stuff update properly. Also, I noticed that the database extensions won't be automatically enabled when migrating, so be sure to toggle those on before doing the migration.
  • d

    drex

    12/04/2021, 10:38 AM
    is there a way to clone a project
  • e

    eunjae

    12/04/2021, 10:58 AM
    Thanks for the explanation. But what does it mean by database extensions? Can you give me an example?
  • l

    laznic

    12/04/2021, 11:00 AM
    This view right here. So for example if you have turned on the pg_cron extension, you should turn it on in your new project before migrating the data in.
  • l

    laznic

    12/04/2021, 11:01 AM
    See my link above about migrating between projects. That is the only way to do it currently
  • b

    Barba

    12/04/2021, 11:07 AM
    Hey, thanks! I found the issue. Basically I disabled the RLS and the realtime started to work ๐Ÿ™‚
  • e

    eunjae

    12/04/2021, 11:17 AM
    I've never used it so didn't know about that. Thanks!
  • e

    Eimis

    12/04/2021, 12:16 PM
    hey. I try to use API only auth. No JS. and when I try to call: supabase_url/callback?code=&state= i get error, that its unable to exchange external code. But, if call directly github - i get response with access token. i checked values i entered into supabase dashboard. and i copy pasted them into my code. Check this image ->
  • e

    Eimis

    12/04/2021, 12:31 PM
    repo to replicate:
  • e

    Eimis

    12/04/2021, 12:31 PM
    https://github.com/leimantas/remix-caravaggio
  • e

    Eimis

    12/04/2021, 12:31 PM
    and to test go to: http://localhost:3000/api/auth/github
  • e

    Eimis

    12/04/2021, 12:31 PM
    code: https://github.com/leimantas/remix-caravaggio/tree/main/app/routes/api/auth
  • t

    thomas_mol

    12/04/2021, 1:00 PM
    is there a way to change the default filename format in storage buckets?
  • t

    Thomas B

    12/04/2021, 1:58 PM
    When listening to Realtime data, is it possible to only retrieve some of the columns of the e.g. updated row? ๐Ÿ™‚ (I have a profile table for example where I only retrieve the name.. But when it updates the listener will send the whole row down)
  • w

    wiesson

    12/04/2021, 2:02 PM
    Does anyone know if upsert works with a different key? I'm currently migrating from firestore to supabase and in the first phase, I'd like to mirror the data and then once everything works do the switch.
    Copy code
    supabase.from("companies").upsert([ { ...data, legacyId: "some-id" } ], { onConflict: "legacyId" })
    May it work like this? Insert as usual, but update if legacyId reports conflict?
  • x

    Xyo

    12/04/2021, 2:03 PM
    Youโ€™re gonna need a unique constrain on the columns you use
  • x

    Xyo

    12/04/2021, 2:04 PM
    If you do, then yeah, itโ€™s gonna be fine
  • x

    Xyo

    12/04/2021, 2:05 PM
    Though...
  • x

    Xyo

    12/04/2021, 2:05 PM
    > Primary keys should be included in the data payload in order for an update to work correctly.
1...151152153...316Latest