Is there a way to create check constraint?

I need to have a check constraint in my schema. I know check function is currently not supported, but is there a way to hack our way into implementing it?
1 Reply
rphlmr ⚡
rphlmr ⚡13mo ago
The only way I see is to add it with sql, in a migration file. You can create a standalone empty migration with drizzle-kit generate:pg --custom for example.
Want results from more Discord servers?
Add your server