There is any sea_orm::ColumnType for varchar? #771
Answered
by
nickb937
fabioluciano
asked this question in
Q&A
-
I was searching for some way to define a column with varchar(32) and i didn`t find. |
Beta Was this translation helpful? Give feedback.
Answered by
nickb937
Jun 1, 2022
Replies: 1 comment 1 reply
-
In your Self::ColName => ColumnType::String(Some(32)).def() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fabioluciano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your
ColumnTrait
definition, you apply a numeric value to theColumnType:String
enum to limit it, which will becomeVARCHAR(32)
in the DDL: