diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 18:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 18:08:08 +0300 |
commit | 946771d0b016ae92b15a60bc3290a33b94191ffe (patch) | |
tree | 64862c2433989483f5fce45d5539242577a362eb /lib/gitlab/background_migration | |
parent | f1e2fca19a90a6992c2020cf8c2159cfb0b61bca (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/background_migration')
-rw-r--r-- | lib/gitlab/background_migration/cleanup_optimistic_locking_nulls.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/cleanup_optimistic_locking_nulls.rb b/lib/gitlab/background_migration/cleanup_optimistic_locking_nulls.rb index 3aa1ebb49f9..bf69ef352cc 100644 --- a/lib/gitlab/background_migration/cleanup_optimistic_locking_nulls.rb +++ b/lib/gitlab/background_migration/cleanup_optimistic_locking_nulls.rb @@ -17,7 +17,7 @@ module Gitlab (start_id..stop_id).each_slice(QUERY_ITEM_SIZE).each do |range| model .where(lock_version: nil) - .where(id: range) + .where("ID BETWEEN ? AND ?", range.first, range.last) .update_all(lock_version: 0) end end |