Skip to content

How to define column with DEFAULT CURRENT_TIMESTAMP? #53

Answered by billy1624
rise0chen asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @rise0chen, this default method, https://docs.rs/sea-query/0.23.0/sea_query/table/struct.ColumnDef.html#method.default, is intended to be setting default value instead of default expression. You can use extra method for setting default expression for now. See SeaQL/sea-query#99 for details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by billy1624
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #52 on March 17, 2022 08:30.