Cleanup more dependent objects on project delete
|Target version:||Candidate for next major release|
On project deletion, there are currently some rows in the database which are not correctly destroyed and thus become orphaned.
With this patch, we will destroy overridden time entry activities (and all of their children) of a project on project destroy.
We now also destroy dependent objects of stored queries for a project on destroy. This will cleanup rows from the habtm join table
queries_roles which were also orphaned before.
The attached patch is against current trunk but should also apply to older versions. When we apply this, we may also want to add a migration to cleanup previously orphaned rows in the database.
#2 Updated by Holger Just 3 days ago
Attached is an updated patch which included a migration to delete potentially orphaned database rows.