Wrong docs on casing
The docs chat bot suggests this but that seems wrong
Where can I specify the rule for the column aliases?
Right now it's a lot of noise
responseId: bigint('response_id')
13 Replies
That seems right to me, but you also might want to add that to the Drizzle config file
TS says it does not belong there.
Which Drizzle versions are you on?
I believe it was added in yesterday's releases
"drizzle-orm": "0.33.0",
"drizzle-kit": "0.24.2",
Well, that would explain that 🙂
Yup, updating both should fix it
I need to add it in both places?
I think so
You'll need it in the config for the drizzle-kit commands
but for the config file I've only found "preserve" and "camelCase"
would that need to be "preserve" then?
I don't quite understand the duality of it yet.
I have this when using postgres
adding it in both places then 🤷♂️
thanks for the help!
Just tried without adding it in drizzle(). It breaks the ORM part
you should have it in both places
if you want to use casing in both orm part and drizzle generate/push parts
:CatThumbsUp: