mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
dialect/sql/schema: add field collation support (#1548)
* specific field collation support * go generate ./...
This commit is contained in:
@@ -39,6 +39,7 @@ var (
|
||||
{{- with $c.Attr }} Attr: "{{ . }}",{{ end }}
|
||||
{{- with $c.Enums }} Enums: []string{ {{ range $e := . }}"{{ $e }}",{{ end }} },{{ end }}
|
||||
{{- if not (isNil $c.Default) }} Default: {{ $c.Default }},{{ end }}
|
||||
{{- if ne (len $c.Collation) 0 }} Collation: {{ $c.Collation }},{{ end }}
|
||||
{{- with $c.SchemaType }} SchemaType: map[string]string{ {{ range $k, $v := . }}"{{ $k }}": "{{ $v }}",{{ end }}}{{ end }}},
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user