Commit dbe8af6
committed
Add FK from ProposalProvenance to AutomationProposal in EF config
ProposalProvenance.ProposalId was indexed but had no foreign key
constraint, allowing orphaned provenance rows. Configure a one-to-one
relationship with cascade delete to match the existing pattern used
by Operations, Revisions, and Outcomes.1 parent e1ff5d7 commit dbe8af6
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
- backend/src/Taskdeck.Infrastructure/Persistence/Configurations
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
0 commit comments