Delete Relationship when Account is deleted

Prevents errors when accessing dangling relationships w/o accounts
This commit is contained in:
Shadowfacts 2023-01-13 10:31:51 -05:00
parent 2ed8d22899
commit b4384d11f5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<attribute name="url" attributeType="URI"/>
<attribute name="username" attributeType="String"/>
<relationship name="movedTo" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Account"/>
<relationship name="relationship" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Relationship" inverseName="account" inverseEntity="Relationship"/>
<relationship name="relationship" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="Relationship" inverseName="account" inverseEntity="Relationship"/>
<relationship name="statuses" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Status" inverseName="account" inverseEntity="Status"/>
<uniquenessConstraints>
<uniquenessConstraint>