© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•13mo ago•
1 reply
RobiPoire

CHECK constraints not working with drizzle-orm/pg-core

Hello, I have an issue. I can't add CHECK constraints to my table. I tried with a simple example, but it's not working. Could this be a bug?

I followed the code from the documentation, but the CHECK constraints aren't being applied :'(

Here is my code: https://drizzle.run/m8kdhex9yw6yqaxbywunfyj4
code_doc.png
my_code.png
Drizzle Run
(fork) View and Check constraint - Drizzle Run
(fork) View and Check constraint - Drizzle Run
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Applying migrations with drizzle-orm/pg-core
Drizzle TeamDTDrizzle Team / help
3y ago
geometry not available on 'drizzle-orm/pg-core'
Drizzle TeamDTDrizzle Team / help
2y ago
VSCode - how force auto-imports from 'drizzle-orm/pg-core' instead of 'drizzle-orm/mysql-core'
Drizzle TeamDTDrizzle Team / help
3y ago
cannot find module 'drizzle-orm/pg-core' on pnpm
Drizzle TeamDTDrizzle Team / help
2y ago