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
1 Reply
I found the issue: you should use parentheses instead of square brackets, even though the documentation says to use square brackets.
Here is the correct code:
Here is the correct code: