Skip to content

Commit

Permalink
EF-18(fix): Version Compatibility for ent 0.9.X
Browse files Browse the repository at this point in the history
  • Loading branch information
lxy1992 committed Jan 10, 2023
1 parent ec19830 commit bc48de8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Simplify the process of creating mock model objects for ent schema.

## Requirement
- Golang 1.18+
- [Ent](entgo.io/ent) 0.11.4
- [Ent](entgo.io/ent) 0.10.0 - 0.11.4
- [Faker](github.com/bxcodec/faker) 2.0
## How to install
### Install
Expand Down
5 changes: 4 additions & 1 deletion constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ var (
DefaultEntClientName = "EntClient"
DefaultModelPath = "spec/schema"
ImportTime = "time"
IgnoreFolderNames = []string{"enttest", "hook", "migrate", "partnerregister", "predicate", "runtime"}
IgnoreFolderNames = []string{
"enttest", "hook", "migrate", "partnerregister", "predicate", "runtime",
"schema",
} // schema is the old version(0.10.X) ent generated
)

0 comments on commit bc48de8

Please sign in to comment.