fix: model unique keys generated differently in each re-generation (#1771)

This commit is contained in:
Kevin Wan
2022-04-09 00:25:23 +08:00
committed by GitHub
parent 0cc9d4ff8d
commit 415c4c91fc
4 changed files with 23 additions and 7 deletions

View File

@@ -82,7 +82,8 @@ func genFindOneByField(table Table, withCache, postgreSql bool) (*findOneCode, e
}
if withCache {
text, err := pathx.LoadTemplate(category, findOneByFieldExtraMethodTemplateFile, template.FindOneByFieldExtraMethod)
text, err := pathx.LoadTemplate(category, findOneByFieldExtraMethodTemplateFile,
template.FindOneByFieldExtraMethod)
if err != nil {
return nil, err
}