Jackson Kasi
Explore posts from serversDTDrizzle Team
•Created by Jackson Kasi on 10/22/2024 in #help
Issue: Error during `db:push` - TypeError in Drizzle Kit with PostgreSQL
#### What I've Tried:
1. Schema Inspection for
Sample results: I suspect this (or a similar
CHECK
Constraints:
- I ran a query to check for any CHECK
constraints in my PostgreSQL schema, as I suspected the error might be related to them. Here's what I found:
Sample results: I suspect this (or a similar
CHECK
) constraint might be causing the issue.
2. Tried Downgrading/Upgrading drizzle-kit
:
I tried downgrading and upgrading drizzle-kit
but the issue persists with the same error.
3. Checked Permissions:
I also ensured that my PostgreSQL user has sufficient permissions to modify the schema and drop constraints.
#### Next Steps:
- Is there a known issue with drizzle-kit
handling complex CHECK
constraints like the one in pgsodium.key
?
- Should I manually drop these constraints before running db:push
, or is there a workaround to handle this within Drizzle ORM?
- Any insights or potential fixes from the community would be greatly appreciated!
Thanks in advance for your help!3 replies