Skip to content

Error: "permission denied for schema public" when trying to use a trigger function on a table created by Prisma #7094

Discussion options

You must be logged in to vote

Recreated the whole project, remigrated the database, resetup the function and the trigger, and double checked that the function is created as a security definer. Now it works.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lumenwrites
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenwrites
Comment options

You must be logged in to vote
1 reply
@LukerSpringtree
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants