Skip to content
Discussion options

You must be logged in to vote

I've determined the correct approach. Generally, .extra appends text after existing content, so order matters. sea_orm_migration::schema::datetime is equivalent to ColumnDef::new(...).datetime().not_null(), meaning any extra will be added after NOT NULL in SQL. The proper way is: ColumnDef::new(...).timestamp().extra("(3)").not_null() so (3) will be added right after the timestamp type.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jason5Lee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant