Opened 13 years ago

Closed 13 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.

Change History (1)

comment:1 by Elrond, 13 years ago

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.