Skip to content

Commit

Permalink
entc/gen/template/sql/feature: add comment to feature field on config… (
Browse files Browse the repository at this point in the history
#2515)

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

* all: go generate
  • Loading branch information
masseelch committed May 2, 2022
1 parent dab95be commit 51f293f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion entc/gen/template/dialect/sql/feature/schemaconfig.tmpl
Expand Up @@ -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 -}}
Expand Down
2 changes: 1 addition & 1 deletion entc/integration/multischema/ent/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51f293f

Please sign in to comment.