argos icon indicating copy to clipboard operation
argos copied to clipboard

Adding a default value for createdAt and updatedAt in PostgreSQL

Open oliviertassinari opened this issue 7 years ago • 3 comments

oliviertassinari avatar Apr 03 '17 13:04 oliviertassinari

@oliviertassinari is it possible? You mean default value?

gregberge avatar May 10 '17 06:05 gregberge

Yes default value, that was your idea originally :)

oliviertassinari avatar May 10 '17 06:05 oliviertassinari

Yes I thought it was adding some createdAt and updatedAt column automatically, updatedAt cannot be easy handled by Postgres. So it's just adding a default value for all updatedAt / createdAt.

gregberge avatar May 10 '17 07:05 gregberge