mirror of
https://github.com/ent/ent.git
synced 2026-05-01 23:20:53 +03:00
dialect/sql/schema: sqlite support for uuid type
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/177 Reviewed By: alexsn Differential Revision: D18615595 fbshipit-source-id: b3167a0aa9260cdf22d88dd7e45c7ebfae1909d5
This commit is contained in:
committed by
Facebook Github Bot
parent
db7b05ad04
commit
f7dac21972
@@ -110,6 +110,8 @@ func (*SQLite) cType(c *Column) (t string) {
|
||||
t = "datetime"
|
||||
case field.TypeJSON:
|
||||
t = "json"
|
||||
case field.TypeUUID:
|
||||
t = "uuid"
|
||||
default:
|
||||
panic("unsupported type " + c.Type.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user