Skip to content

Fixes broken MySQL migration for retried

Kamil Trzcińśki requested to merge fix-retried-for-mysql into master

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 SET retried = ((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.

Merge request reports