sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

how can i do for date_time default value of migration

Open ringrid opened this issue 4 years ago • 3 comments

I don't know how do i add default value to type of date_time, eg:

...
.col(ColumnDef::new("op_time").date_time().default(???))
...

thanks

ringrid avatar Aug 11 '22 18:08 ringrid

Hey @ringrid, welcome! Got it resolved?

billy1624 avatar Aug 12 '22 10:08 billy1624

@billy1624 thank you , I found your answer of sea-query question #346, I had resolved my question.

ringrid avatar Aug 12 '22 13:08 ringrid

Thanks for the updates :)

billy1624 avatar Aug 13 '22 04:08 billy1624