touchRelations

When tasks are added or updated, they may refer to related tasks by UID (TaskContract.Property.Relation.RELATED_UID). However, those related tasks may not be available (for instance, because they have not been synchronized yet), so that the tasks provider can't establish the actual relation (= set TaskContract.PropertyColumns.TASK_ID) in the database.

As soon as such a related task is added, OpenTasks updates the TaskContract.Property.Relation.RELATED_ID, but it does not update TaskContract.TaskColumns.PARENT_ID of the parent task: https://github.com/dmfs/opentasks/issues/877

This method shall be called after all tasks have been synchronized. It touches

so that missing TaskContract.TaskColumns.PARENT_ID fields are updated.

Return

number of touched TaskContract.Property.Relation rows