Skip to content

There is any sea_orm::ColumnType for varchar? #771

Answered by nickb937
fabioluciano asked this question in Q&A
Discussion options

You must be logged in to vote

In your ColumnTrait definition, you apply a numeric value to the ColumnType:String enum to limit it, which will become VARCHAR(32) in the DDL:

Self::ColName => ColumnType::String(Some(32)).def()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fabioluciano
Comment options

Answer selected by fabioluciano
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