© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
Drizzle Team
•
3y ago
•
2 replies
peachneo
UpdatedAt column - Postgres
What
's the best practice way to achieve a standard
"updatedAt
" column with the pg wrapper
?
I
've seen mysql has
timestamp('updated_at').defaultNow().onUpdateNow().notNull()
timestamp('updated_at').defaultNow().onUpdateNow().notNull()
However onUpdateNow
(
) doesn
't appear to be there for pg
.
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
Right way to make UpdatedAt column in Drizzle?
DT
Drizzle Team / help
2y ago
Rename conflicted column (postgres)
DT
Drizzle Team / help
2y ago
Generate column from another column postgresql
DT
Drizzle Team / help
3y ago
instanceof postgres.PostgresError not working
DT
Drizzle Team / help
9mo ago