Skip to content

Commit

Permalink
Change normalized_id field to mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed Feb 2, 2025
1 parent b8e4e46 commit 0b92b8c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 77 deletions.
2 changes: 1 addition & 1 deletion ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions ent/node/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 3 additions & 28 deletions ent/node_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions ent/node_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/schema/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (Node) Fields() []ent.Field {
}).Unique(),
field.String("normalized_id").SchemaType(map[string]string{
dialect.Postgres: "text",
}).Unique().Optional(),
}).Unique(),
field.String("publisher_id").SchemaType(map[string]string{
dialect.Postgres: "text",
}),
Expand Down

0 comments on commit 0b92b8c

Please sign in to comment.