mirror of
https://github.com/ent/ent.git
synced 2026-05-01 15:10:57 +03:00
schema/field: implement field.Other (#1218)
* Implement Other Field * Implement Other Field * Changed dialect types * run generate * doc typo * docs added * schema/field: additional validation and tests for Other type Co-authored-by: Ciaran Liedeman <ciaran@stackworx.io>
This commit is contained in:
@@ -120,7 +120,7 @@ func (*SQLite) cType(c *Column) (t string) {
|
||||
case field.TypeUUID:
|
||||
t = "uuid"
|
||||
default:
|
||||
panic("unsupported type " + c.Type.String())
|
||||
panic(fmt.Sprintf("unsupported type %q for column %q", c.Type, c.Name))
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user