typescript error when trying to update a column

No description
No description
No description
5 Replies
RWOverdijk
RWOverdijk2mo ago
This feels similar to https://discord.com/channels/1043890932593987624/1349320633267261500 and you're also not defining that the field cannot be null. I'm not saying that's a problem, but it might help find the issue. Also your third argument on leaderboards table should return an array
RWOverdijk
RWOverdijk2mo ago
https://github.com/drizzle-team/drizzle-orm/issues/4219 from another question in here, seems the same.
GitHub
[BUG]: (drizzle-orm/sqlite-core) SQLite Schemas do not support null...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.40.0 What version of drizzle-kit...
max
maxOP2mo ago
correct, if i add .notNull() it clears the issue but that's not exactly ideal also using neon postgres
RWOverdijk
RWOverdijk2mo ago
Cool I mean, not cool for you of course But cool that it is likely the same as the linked issue then. That means you at least know what is broken. I would upvote that issue, and either try to find a fix or work around it for now. I agree that it sucks though, very annoying.
max
maxOP2mo ago
yeah, just glad that it's only a ts error and doesn't break anything

Did you find this page helpful?