diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb')
-rw-r--r-- | db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb b/db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb index d249ffb9c1b..f27cc34aef8 100644 --- a/db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb +++ b/db/post_migrate/20230419094939_swap_merge_request_metrics_id_to_bigint_for_self_hosts.rb @@ -31,8 +31,8 @@ class SwapMergeRequestMetricsIdToBigintForSelfHosts < Gitlab::Database::Migratio def swap add_concurrent_index TABLE_NAME, :id_convert_to_bigint, unique: true, name: 'index_merge_request_metrics_on_id_convert_to_bigint' - add_concurrent_index TABLE_NAME, 'target_project_id, merged_at DESC NULLS LAST, id_convert_to_bigint DESC', - name: TMP_INDEX_NAME + add_concurrent_index TABLE_NAME, [:target_project_id, :merged_at, :id_convert_to_bigint], + name: TMP_INDEX_NAME, order: { merged_at: 'DESC NULLS LAST', id_convert_to_bigint: 'DESC' } with_lock_retries(raise_on_exhaustion: true) do execute "LOCK TABLE #{TABLE_NAME} IN ACCESS EXCLUSIVE MODE" |