entc/gen: support on-delete annotation in migrate/schema

This commit is contained in:
Ariel Mashraki
2021-03-16 13:14:05 +02:00
committed by Ariel Mashraki
parent 75c4ac189b
commit 9685066b83
42 changed files with 10139 additions and 2 deletions

View File

@@ -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
}