Fixes broken MySQL migration for retried
What does this MR do?
Fixes broken MySQL migration for retried
Mysql2::Error: Table 'ci_builds' is specified twice, both as a target for 'UPDATE' and as a separate source for data: UPDATE
ci_builds
SETretried
= ((SELECT MAX(ci_builds2.id)
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/32647
This is slow, as this does create the temporary table and then updates whole retried.