Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
You're about to add not-null version without default value - Drizzle Team
DT
Drizzle Team
•
3y ago
•
4 replies
thdxr
You're about to add not-null version without default value
I added this column
version: int("version").notNull().default(0),
version: int("version").notNull().default(0),
and it
's trying to truncate because it thinks there
's on default value
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
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
"You're about to add not-null useless column without default value, which contains 1 items"
DT
Drizzle Team / help
2y ago
Not null must have default value as well?
DT
Drizzle Team / help
2y ago
about not null
DT
Drizzle Team / help
3y ago
SQLite Timestamp does not allow a default NULL value
DT
Drizzle Team / help
2y ago