Hello <@652314275188310020>! This thread has been ...
# help
n
Hello @akito! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
n
akito (2022-04-16)
a
Thank you - I updated the function return type to
trigger
and the code to mirror the bottom example (not sure if
return new
is necessary or not), but after linking the function (on
INSERT
into
auth.users
, run function after) I'm getting a 500 error when attempting to sign up:
Copy code
begin
  INSERT INTO public.user_data (user_id)
  VALUES (new.id);
  return new;
end;
where the
user_data
table within the
public
schema only contains the
user_id
as the primary key with type
uuid
Nevermind, got it working after setting security definer as well, thank you