Opened 9 years ago

Closed 9 years ago

#411 closed defect (fixed)

sql: deleting media needs to delete media_data

Reported by: Elrond Owned by: Elrond
Priority: critical Milestone: 0.3.0
Component: component1 Keywords: sql
Cc: Parent Tickets:

Description

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.

Subtickets

Change History (1)

comment:1 Changed 9 years ago by Elrond

Resolution: fixed
Status: newclosed

Okay, fixed in commit: 02f07bfe145fb4c3a31101c48202224d803004da

Main point is to tell sqlalchemy about the relationships and use the proper cascade value on the proper side.

Note: See TracTickets for help on using tickets.