Project

General

Profile

Actions

Patch #36416

closed

Cleanup more dependent objects on project delete

Added by Holger Just over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Database
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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.


Files


Related issues

Related to Redmine - Patch #36844: Cleanup orphaned query and role ids from habtm join table queries_roles ClosedMarius BĂLTEANU

Actions
Related to Redmine - Defect #38286: "Cannot delete enumeration" error may occur when attempting to delete a project with time entriesClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF