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

    Mike92988

    11/19/2021, 5:10 PM
    Does anyone know if you're able to set enum values in supabase? i'm unfamiliar with postgres, and i've been using the GUI mostly for creating rows
    s
    • 2
    • 4
  • p

    premic

    11/19/2021, 8:59 PM
    Hi, I am trying to add vercel integration via vercel.com and app.supabase.io tells me 'Retrieve vercel token failed'. Does anyone experience the same?
  • l

    leynier

    11/19/2021, 9:10 PM
    the same happens to me
  • p

    premic

    11/19/2021, 9:14 PM
    yea, that's where I've been... thanks @User
  • s

    Svelte Mastery (Noah)

    11/19/2021, 11:33 PM
    Does anyone know how to reload the schema cache? I'm trying to run a SQL query that I made (increment) but I'm getting this error..
    Copy code
    "If a new function was created in the database with this name and parameters, try reloading the schema cache."
    EDIT: oh it's cause i need to run the query first it seems. but I get a
    relation "posts" does not exist
    error even though I have a table named posts. EDIT2: looks like i needed to name my table with a lowercase letter. it was called Posts and I changed it to posts and now it's working 👍 EDIT3: or maybe not.. RLS seems to be blocking it, any ideas..?
  • g

    garyaustin

    11/20/2021, 1:08 AM
    on 3 you don't give much info on what your function is doing, but you probably need security definer END; $$ LANGUAGE plpgsql SECURITY DEFINER which does not use RLS of the user
  • s

    Svelte Mastery (Noah)

    11/20/2021, 1:10 AM
    Ohh okay thank you! I’m using the incrementer template fyi
  • e

    eri

    11/20/2021, 3:01 AM
    hello, is there any documentations on setting up LTREE with supabase?
    t
    • 2
    • 10
  • t

    tourdownunder

    11/20/2021, 3:51 AM
    LTREE with supabase?
  • j

    Jacob Paris 🇨🇦

    11/20/2021, 7:24 AM
    I have a
    codes
    table with an
    account_id
    foreign key linking to the user's authenticated id. I'm trying to create an INSERT policy that allows users to create new codes with their own account ID but no one else's Replacing this policy with
    true
    allows the operation to work, but with this filter on I can't get any to pass and I'm not sure what I'm doing wrong
  • s

    schwarzsky

    11/20/2021, 9:30 AM
    Got an error while trying to delete an user from
    Authentication
    tab,
    Deleting user failed: update or delete on table "users" violates foreign key constraint "objects_owner_fkey" on table "objects"
  • i

    Ilango

    11/20/2021, 9:31 AM
    Anyone here implemented a signup email flow with auth? I want to know when a user signs up so I can add them to an email marketing tool. I looked at Triggers but it doesn't show premade tables like users. How do I go about setting up triggers for the users table? Apologies if this has been asked before.
  • i

    Ilango

    11/20/2021, 9:32 AM
    I think one of the rows in your objects table has the user id you're trying to delete. you have to delete that row first before you can delete the user.
  • s

    schwarzsky

    11/20/2021, 9:33 AM
    Yeah it does but i'm not linked any of them
  • s

    schwarzsky

    11/20/2021, 9:35 AM
    i deleted all entries but still same
  • s

    schwarzsky

    11/20/2021, 9:47 AM
    still can't find a way out
  • i

    Ilango

    11/20/2021, 9:51 AM
    Can you post some screenshots? I tested it just now and it works.
  • s

    schwarzsky

    11/20/2021, 9:53 AM

    https://soo.gg/u/e4fzdDJE.png▾

  • s

    schwarzsky

    11/20/2021, 9:56 AM
    Tried some SQL queries still wont work
  • i

    Ilango

    11/20/2021, 10:02 AM
    I meant screenshots of your tables from table editor
  • s

    schwarzsky

    11/20/2021, 10:06 AM
    ahah
  • s

    schwarzsky

    11/20/2021, 10:06 AM
    Sorry
  • s

    schwarzsky

    11/20/2021, 10:08 AM

    https://soo.gg/u/NVLZDpF2.png▾

  • s

    schwarzsky

    11/20/2021, 10:08 AM
    pretty much every table is same, empty
  • u

    un

    11/20/2021, 10:25 AM
    Is it possible to use
    redirectTo
    with
    supabase.auth.update
    ? By default, it redirects to main page
    s
    • 2
    • 1
  • j

    Jaeden

    11/20/2021, 11:09 AM
    Can’t really do dynamic redirects yet. I’ve tested so many things. You could use some sort of cookie. But it’s not cross device
  • u

    un

    11/20/2021, 11:50 AM
    Thank you. I hope it changes soon
  • s

    silentworks

    11/20/2021, 1:56 PM
    Auth update
  • m

    Mihai

    11/20/2021, 2:54 PM
    Hello, Where can I find more about Stripe Subscriptions ? Any docs ? I've seen there is a stripe subscription query which I'm interested in creating a product with it. For who is interested(https://supabase.com/docs/guides/examples)
  • c

    codesalim

    11/20/2021, 6:05 PM
    Hello everyone, I'm getting this error while following the nextjs example
1...138139140...316Latest