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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user