1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 16:40:18 +00:00

orm string type default will use varchar(255)

This commit is contained in:
slene
2013-08-16 22:24:10 +08:00
parent c81bbf9801
commit 618cbf1e66
3 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ func getFieldType(val reflect.Value) (ft int, err error) {
case reflect.Bool:
ft = TypeBooleanField
case reflect.String:
ft = TypeTextField
ft = TypeCharField
case reflect.Invalid:
default:
if elm.CanInterface() {