-
I saw migrstions file are written in .prisma format. I just want to know what if I wanted to enable RLS (Row Level Security) or I want to write a trigger/policy sepcific to a table. How would I do that in Sorry, I'm quite new to databases, I'm not sure will database migrations should actually include trigger/policy or they are written separately. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Just the declarative schema is written in .prisma files. When you apply migrations to a database, they are run via SQL or saved in .sql files. If a feature is not currently supported in Prisma yet, you can migrate your database yourself using SQL, and then use |
Beta Was this translation helpful? Give feedback.
Just the declarative schema is written in .prisma files. When you apply migrations to a database, they are run via SQL or saved in .sql files. If a feature is not currently supported in Prisma yet, you can migrate your database yourself using SQL, and then use
prisma introspect
(docs) to pull in the database schema to the .prisma file.