Opened 11 years ago
Closed 11 years ago
#411 closed defect (fixed)
sql: deleting media needs to delete media_data
|Reported by:||Elrond||Owned by:||Elrond|
When deleting a media_entry, we need to delete the media_data row too.
sqlalchemy with backref option delete-orphan should handle that for us.
Change History (1)
comment:1 by , 11 years ago
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
Okay, fixed in commit: 02f07bfe145fb4c3a31101c48202224d803004da
Main point is to tell sqlalchemy about the relationships and use the proper cascade value on the proper side.