Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-12 03:10:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-12 03:10:48 +0300
commit5e13b3a9e58a7b78e93b4aa5a12cc19bd6bca674 (patch)
tree84215b5d11e1d837f8a65472a0252bb2b6ed3909 /db
parentc77ce73fa85c128dfeb90a45c4eb306b8c1fe0c9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb b/db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb
index 20618b78391..44e2630af06 100644
--- a/db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb
+++ b/db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb
@@ -8,6 +8,8 @@ class UpdateVulnerabilityOccurrencesLocation < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
+ return unless Gitlab.ee?
+
relation = Gitlab::BackgroundMigration::UpdateVulnerabilityOccurrencesLocation::Occurrence.where(location: nil)
queue_background_migration_jobs_by_range_at_intervals(relation,
MIGRATION_NAME,