Fix pg model generation without tag (#1407)

1. fix pg model struct haven't tag
2. add pg command test from datasource
This commit is contained in:
spectatorMrZ
2022-01-07 10:45:26 +08:00
committed by GitHub
parent 9d67fc4cfb
commit 240132e7c7
2 changed files with 46 additions and 0 deletions

View File

@@ -360,6 +360,7 @@ func getTableFields(table *model.Table) (map[string]*Field, error) {
}
field := &Field{
NameOriginal: each.Name,
Name: stringx.From(each.Name),
DataType: dt,
Comment: each.Comment,