© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
3 replies
skuse

NaN primary keys + not honouring camelCase table names

I upgraded to the lastest version of drizzle-kit & drizzle-orm and my schema seems broken. I was using varchar for ID but it seems it wants to be integer now. So I'm getting NaN on my primary keys.

Also seems to be a bug where relations doesn't pick up tables with camelCasing. I was able to fix this by changing to lower_case which is common practice anyway.

"drizzle-orm": "^0.30.8",
"drizzle-kit": "^0.20.16",
Screenshot_2024-04-20_at_10.54.16_am.png
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

Composite primary key, multiple primary keys
Drizzle TeamDTDrizzle Team / help
2y ago
Multiple primary keys error
Drizzle TeamDTDrizzle Team / help
2y ago
Drizzle Studio Showing NaN for primary key
Drizzle TeamDTDrizzle Team / help
2y ago