mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: support merging dep annotations
This will make it possible to get dependencies from external extensions.
This commit is contained in:
committed by
Ariel Mashraki
parent
4f331e0090
commit
909d24cfc4
@@ -159,10 +159,10 @@ func (a Annotation) Merge(other schema.Annotation) schema.Annotation {
|
||||
return a
|
||||
}
|
||||
|
||||
var (
|
||||
_ schema.Annotation = (*Annotation)(nil)
|
||||
_ schema.Merger = (*Annotation)(nil)
|
||||
)
|
||||
var _ interface {
|
||||
schema.Annotation
|
||||
schema.Merger
|
||||
} = (*Annotation)(nil)
|
||||
|
||||
// ReferenceOption for constraint actions.
|
||||
type ReferenceOption string
|
||||
|
||||
Reference in New Issue
Block a user