Browse Source

remove col.FieldName (#15)

remove col.FieldName

Co-authored-by: Jerry <85411418@qq.com>
Reviewed-on: https://gitea.com/xorm/reverse/pulls/15
main
Jerry 5 years ago
parent
commit
a694923aef
  1. 1
      language/golang.go

1
language/golang.go

@ -144,7 +144,6 @@ func tag(table *schemas.Table, col *schemas.Column) template.HTML {
isIdPk := isNameId && typestring(col) == "int64"
var res []string
res = append(res, "'"+col.FieldName+"'")
if !col.Nullable {
if !isIdPk {
res = append(res, "not null")

Loading…
Cancel
Save