© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Update column ONLY enabled when column is set as NOT NULL #3666 - Drizzle Team
DT
Drizzle Team
•
16mo ago
•
1 reply
neural
Update column ONLY enabled when column is set as NOT NULL #3666
TL
;DR
:
/
/
Sharing this on Discord to find some help and explanation about the title
.
After the first problem that started as a discussion on github and not get any attention
, I
'm trying to reach you guys through discord
.
Work well on local
, dev and probably will work in production
, it seems to be a issue because why should I write a schema that is not equal to my db
?
!
Now with
pglite
pglite
it is more incisive and I should write another schema just to fulfill my e2e test
.
/
/
https://github.com/drizzle-team/drizzle-orm/discussions/3666
Hope someone can help me with that
!
GitHub
Update column ONLY enabled when column is set as NOT NULL · drizzle...
This behavior is expected
? Because
, I
'm only enable to set some field like lastLoginAt when
.notNull
(
) is setted in schema
, but in my case the column should be able to
: NULL
: when we insert NEW
.
.
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
`null` is not assignable to nullable string column?
DT
Drizzle Team / help
2y ago
Update a field only if currently null
DT
Drizzle Team / help
3y ago
Cannot set null value to FK - null value in column "X" of relation "Y" violates not-null constraint
DT
Drizzle Team / help
2y ago
how to set default null to an int column
DT
Drizzle Team / help
3y ago