mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
entc/gen: support on-delete annotation in migrate/schema
This commit is contained in:
committed by
Ariel Mashraki
parent
75c4ac189b
commit
9685066b83
@@ -111,6 +111,9 @@ func (a Annotation) Merge(other schema.Annotation) schema.Annotation {
|
||||
if s := ant.Incremental; s != nil {
|
||||
a.Incremental = s
|
||||
}
|
||||
if s := ant.OnDelete; s != "" {
|
||||
a.OnDelete = s
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user