schema/field: add option to set the Go identifier for enums (#635)

This commit is contained in:
Ariel Mashraki
2020-07-22 20:22:24 +03:00
committed by GitHub
parent 5ad267d862
commit daaa9f2db1
34 changed files with 587 additions and 84 deletions

View File

@@ -23,6 +23,7 @@ import (
"github.com/facebookincubator/ent/entc/integration/ent"
"github.com/facebookincubator/ent/entc/integration/ent/enttest"
"github.com/facebookincubator/ent/entc/integration/ent/file"
"github.com/facebookincubator/ent/entc/integration/ent/filetype"
"github.com/facebookincubator/ent/entc/integration/ent/group"
"github.com/facebookincubator/ent/entc/integration/ent/groupinfo"
"github.com/facebookincubator/ent/entc/integration/ent/migrate"
@@ -1119,6 +1120,7 @@ func Mutation(t *testing.T, client *ent.Client) {
var (
_ = ent.CardExtension{}
_ = ent.Card{}.StaticField
_ = []filetype.Type{filetype.TypeJPG, filetype.TypePNG, filetype.TypeSVG}
)
func drop(t *testing.T, client *ent.Client) {