drizzle-kit: generated constraint names exceed NAMEDATLEN (63 characters) in PostgreSQL
Hi Drizzle Team!
We're running into an issue where the generated constraint names exceed postgres' constraint name max length defined by NAMEDATLEN. This is defined at compile time and thus cannot be changed in many instances since 63 is the default value. I've gotten around the issue for now by manually defining foreign keys instead of using the
.references property, but I was wondering if there are any methods or plans to address this. Here's an example of some table and column names that cause long foreign keys:
0 Replies