mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
schema/field: add option to set the Go identifier for enums (#635)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user