Commit 8acc5d32 authored by Alex Kalderimis's avatar Alex Kalderimis

Do not filter out integrations without properties

These are ignored in the background migration itself, so we don't
need to also filter them at the batching stage.
parent 6411d59d
...@@ -7,10 +7,8 @@ class EncryptIntegrationProperties < Gitlab::Database::Migration[1.0] ...@@ -7,10 +7,8 @@ class EncryptIntegrationProperties < Gitlab::Database::Migration[1.0]
INTERVAL = 2.minutes.to_i INTERVAL = 2.minutes.to_i
def up def up
requiring_update = define_batchable_model('integrations').where.not(properties: nil)
queue_background_migration_jobs_by_range_at_intervals( queue_background_migration_jobs_by_range_at_intervals(
requiring_update, define_batchable_model('integrations'),
MIGRATION, MIGRATION,
INTERVAL, INTERVAL,
track_jobs: true, track_jobs: true,
......
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