Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.