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:
Ariel Mashraki
2019-11-20 09:47:48 -08:00
committed by Facebook Github Bot
parent db7b05ad04
commit f7dac21972
2 changed files with 4 additions and 1 deletions

View File

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