entc/gen/template/sql/feature: add comment to feature field on config… (#2515)

* entc/gen/template/sql/feature: add comment to feature field on config and remove blank line

* all: go generate
This commit is contained in:
MasseElch
2022-05-02 13:29:53 +02:00
committed by GitHub
parent dab95be855
commit 51f293fc54
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context
{{/* Addtional fields to the config struct. */}}
{{- define "dialect/sql/config/fields/schemaconfig" -}}
{{- if $.FeatureEnabled "sql/schemaconfig" }}
{{- if $.FeatureEnabled "sql/schemaconfig" -}}
// schemaConfig contains alternative names for all tables.
schemaConfig SchemaConfig
{{- end }}
{{- end -}}