https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • s

    sudo killall windows

    10/04/2021, 9:35 PM
    Copy code
    sql
    SELECT raw_user_meta_data->>'provider_id' from auth.users
  • s

    sudo killall windows

    10/04/2021, 9:50 PM
    now just gotta get the values from the
    INSERT
    out
  • l

    Link

    10/05/2021, 5:48 AM
    hello my dear supabase friends
  • l

    Link

    10/05/2021, 5:49 AM
    I think its time for me to finally update my deno ports
  • l

    Link

    10/05/2021, 5:49 AM
    to match the new code of the npm packages of supabase
  • b

    brikbrik

    10/05/2021, 6:15 AM
    Hello, is there a way to update a database row aswell as a row from a foreign table in a single request ?
  • c

    chipilov

    10/05/2021, 9:06 AM
    I think there are 2 options: - define a stored procedure in PostgreSQL and invoke it via supabase().rpc() (https://supabase.io/docs/reference/javascript/rpc) - create a view and an associated INSTEAD OF trigger - that way you can still use supabase().from().update() but you would still need to setup a trigger function to actually carry out the inserts (https://postgrest.org/en/v3.2/api_writing.html#multiple-tables-insertion-or-update, https://www.postgresql.org/docs/13/trigger-definition.html)
  • b

    brikbrik

    10/05/2021, 11:36 AM
    Thanks for the reply. I will checkout those links !
  • d

    directlycrazy

    10/06/2021, 12:48 AM
    Is anyone else having this issue trying to edit a value in the web client?
  • b

    Biondi Bagasta Wiko Putra

    10/06/2021, 2:23 AM
    Is it possible to adding signed Up user full Name????? I mean, when the user was signed up to the system, they're should give their full name (FirstName and LastName) so i can show their full name on dashboard like this :
  • r

    riknieu

    10/06/2021, 6:05 AM
    What would the appropriate channel to ask about backing up and restoring the supabase Postgress db via CLI?
  • c

    chipilov

    10/06/2021, 7:20 AM
    I think there are 2 ways to achieve this: - the currently recommended way as suggested by Supabase's co-founder: https://github.com/supabase/supabase/discussions/556 - the signUp() method also accepts a third parameter for user metadata (you can pass a any field you want) which I think is then stored in the raw_user_meta_data field of the auth.users table;
  • c

    chipilov

    10/06/2021, 7:23 AM
    a couple of important notes on the latter approach above: - since raw_user_meta_data is a JSONB field, it will not be easy to enforce uniqueness on any of its subfields; I think there are ways to do it, but it's not as easy as just adding a UNIQUE constraint; - I think the data in raw_user_meta_data gets inserted in the access_token of a user. This means that if you have long-lived access_tokens, it will be tricky to change the name (since the data in the access token is expected to be valid for the duration of the access token, regardless of any changes in the db) - You might be able to avoid both issues above is you setup a trigger which moves the data from raw_user_meta_data to another table as soon as it is inserted - just an idea, not sure exactly how to do it;
  • r

    rajan-kz

    10/06/2021, 7:23 AM
    I am getting 1-5sec of latency on my hello world project. Is it due to free acount?
  • b

    Biondi Bagasta Wiko Putra

    10/06/2021, 8:04 AM
    so based on this, i should creating
    Copy code
    users
    table and the id should be
    Copy code
    UID
    from authentication???
  • c

    chipilov

    10/06/2021, 8:06 AM
    yes...maybe you should call it profiles, user_profiles or user_details to make it easier to differentiate from the original auth.users table
  • m

    MDobs

    10/06/2021, 9:52 AM
    So FB requires a platform to be added in order to use the Facebook Login, the guide doesn't show a platform picked, should we go with web or depending on the usage mobile/web to add the correct platform?
  • b

    Biondi Bagasta Wiko Putra

    10/06/2021, 11:37 AM
    #ASK Why i got this error when inserting data ????
    Copy code
    "new row violates row-level security policy for table \"category\""
    status: 403
    s
    • 2
    • 3
  • u

    user

    10/06/2021, 1:58 PM
    guys, ive two redirect urls for auth, but only the first one works and the second one doesnt
  • u

    user

    10/06/2021, 1:58 PM
    can someone tell me why
  • s

    silentworks

    10/06/2021, 4:05 PM
    RLS enabled
  • a

    assistattow

    10/06/2021, 8:48 PM
    when doing an update to a row how does supabase know which row to change?
    g
    • 2
    • 8
  • a

    assistattow

    10/06/2021, 8:49 PM
    from my flutter code there isn't really anything here to say "change this" it should just do every row
  • a

    assistattow

    10/06/2021, 9:08 PM
    I think its the row level security that stops it selecting the wrong thing
  • g

    garyaustin

    10/06/2021, 9:19 PM
    update which row
  • s

    sudo killall windows

    10/06/2021, 10:11 PM
    * dart code (I’m a stickler for details)
  • h

    Hal

    10/06/2021, 10:20 PM
    Is it possible to create rls policy based on an input? For example: allow insert if the inserted id does not exist yet
    s
    • 2
    • 11
  • b

    ben-wib

    10/06/2021, 10:22 PM
    Hey all šŸ™‚ I'm trying to migrate my supbase DB from cloud to my on-premise environment with no success does anyone have good tutrial for it?
  • s

    Scott P

    10/06/2021, 11:59 PM
    https://dev.to/chronsyn/self-hosting-with-supabase-1aii
  • o

    omertoast

    10/07/2021, 4:08 AM
    hey guys can anyone explain shortly how can i add a scope to the current discord oauth?
1...112113114...392Latest