Skip to content
Discussion options

You must be logged in to vote

I found a solution in this article https://medium.com/@ngoctranfire/using-prisma-with-supabase-row-level-security-and-multi-schema-7c53418adba3
The most important thing is to never reset the database because it gets corrupted.
After running prisma db pull and creating the migration file, you should set this migration as applied npx prisma migrate resolve --applied 0_init and DELETE migration record from migrations table in supabase. After this, next migrations works like a charm and everything is working!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@lorekadam
Comment options

@lorekadam
Comment options

Comment options

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

Answer selected by lorekadam
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
Category
Q&A
Labels
None yet
3 participants