diff --git a/entc/gen/template/dialect/sql/feature/schemaconfig.tmpl b/entc/gen/template/dialect/sql/feature/schemaconfig.tmpl index df690dc918..696f54c43b 100644 --- a/entc/gen/template/dialect/sql/feature/schemaconfig.tmpl +++ b/entc/gen/template/dialect/sql/feature/schemaconfig.tmpl @@ -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 -}} diff --git a/entc/integration/multischema/ent/config.go b/entc/integration/multischema/ent/config.go index 063cc0f55f..af97dc2577 100644 --- a/entc/integration/multischema/ent/config.go +++ b/entc/integration/multischema/ent/config.go @@ -27,7 +27,7 @@ type config struct { log func(...interface{}) // hooks to execute on mutations. hooks *hooks - + // schemaConfig contains alternative names for all tables. schemaConfig SchemaConfig }