You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are wondering if its possible to use always varchar(255) on string struct fields when using auto migrate. Per default the datatype longtext is always used. For now we have to use the
gorm:"type:varchar(255)"
tag to determine the varchar Field. Is there a more elegant way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
we are wondering if its possible to use always varchar(255) on string struct fields when using auto migrate. Per default the datatype longtext is always used. For now we have to use the
gorm:"type:varchar(255)"
tag to determine the varchar Field. Is there a more elegant way?
Beta Was this translation helpful? Give feedback.
All reactions