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:
Ariel Mashraki
2021-01-31 17:43:28 +02:00
committed by GitHub
parent d87eb0ab32
commit 3930d3c835
25 changed files with 646 additions and 39 deletions

View File

@@ -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
}