Commit 66a9bb6e authored by Krasimir Angelov's avatar Krasimir Angelov

Merge branch '345537-skip-ee-migration' into 'master'

Skip EE only migrations UpdateVulnerabilityOccurrencesLocation for FOSS

See merge request gitlab-org/gitlab!74328
parents d6dbe34f f7600650
...@@ -8,6 +8,8 @@ class UpdateVulnerabilityOccurrencesLocation < Gitlab::Database::Migration[1.0] ...@@ -8,6 +8,8 @@ class UpdateVulnerabilityOccurrencesLocation < Gitlab::Database::Migration[1.0]
disable_ddl_transaction! disable_ddl_transaction!
def up def up
return unless Gitlab.ee?
relation = Gitlab::BackgroundMigration::UpdateVulnerabilityOccurrencesLocation::Occurrence.where(location: nil) relation = Gitlab::BackgroundMigration::UpdateVulnerabilityOccurrencesLocation::Occurrence.where(location: nil)
queue_background_migration_jobs_by_range_at_intervals(relation, queue_background_migration_jobs_by_range_at_intervals(relation,
MIGRATION_NAME, MIGRATION_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment