mirror of https://github.com/go-gorm/gorm.git
Merge branch 'master' into v2
This commit is contained in:
commit
c9d5667ff0
|
@ -28,6 +28,8 @@ func (s *sqlite3) SqlTag(column interface{}, size int) string {
|
||||||
return "bigint"
|
return "bigint"
|
||||||
case float32, float64, sql.NullFloat64:
|
case float32, float64, sql.NullFloat64:
|
||||||
return "real"
|
return "real"
|
||||||
|
case []byte:
|
||||||
|
return "blob"
|
||||||
case string, sql.NullString:
|
case string, sql.NullString:
|
||||||
if size > 0 && size < 65532 {
|
if size > 0 && size < 65532 {
|
||||||
return fmt.Sprintf("varchar(%d)", size)
|
return fmt.Sprintf("varchar(%d)", size)
|
||||||
|
|
Loading…
Reference in New Issue