@@ 327-329 (lines=3) @@ | ||
324 | } |
|
325 | ||
326 | // All assigned subtasks are now unassigned (no foreign key) |
|
327 | if (!$db->table(SubtaskModel::TABLE)->eq('user_id', $user_id)->update(['user_id' => 0])) { |
|
328 | return false; |
|
329 | } |
|
330 | ||
331 | // All comments are not assigned anymore (no foreign key) |
|
332 | if (!$db->table(CommentModel::TABLE)->eq('user_id', $user_id)->update(['user_id' => 0])) { |
|
@@ 332-334 (lines=3) @@ | ||
329 | } |
|
330 | ||
331 | // All comments are not assigned anymore (no foreign key) |
|
332 | if (!$db->table(CommentModel::TABLE)->eq('user_id', $user_id)->update(['user_id' => 0])) { |
|
333 | return false; |
|
334 | } |
|
335 | ||
336 | // All private projects are removed |
|
337 | $project_ids = $db->table(ProjectModel::TABLE) |