Skip to content

Commit

Permalink
Merge pull request #1 from cresta/fix-postgres-table-schema
Browse files Browse the repository at this point in the history
Fix struct name
  • Loading branch information
tigersoldier authored Nov 20, 2021
2 parents d3ae516 + 4a42ec1 commit 113e95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbmeta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ func GenerateModelInfo(tables map[string]*ModelInfo, dbMeta DbTableMeta,
}

structName := Replace(conf.ModelNamingTemplate, tableSchemaAndName.TableName)
structName = CheckForDupeTable(tables, tableSchemaAndName.TableName)
structName = CheckForDupeTable(tables, structName)

fields, err := conf.GenerateFieldsTypes(dbMeta)
if err != nil {
Expand Down

0 comments on commit 113e95b

Please sign in to comment.