Improve update_all when FROM is a subquery
After working in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46260, we have learned that the UPDATE statement was incorrect because the SQL code doesn't include the subquery. This change partially reverts the changes in c2b330dc. This is not a bug because: - If a project has an issue tracker integration or an external wiki integration, `has_external_issue_tracker`/`has_external_wiki` is already `true`, so we just were updating it again with `true`. This commit avoids this scenario. - If a project doesn't have an issue tracker integration or an external wiki integration, `has_external_issue_tracker`/`has_external_wiki` is `false`, so we update it to `true`.
Showing
Please register or sign in to comment