diff options
Diffstat (limited to 'db/post_migrate/20230208125736_schedule_migration_for_links.rb')
-rw-r--r-- | db/post_migrate/20230208125736_schedule_migration_for_links.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/db/post_migrate/20230208125736_schedule_migration_for_links.rb b/db/post_migrate/20230208125736_schedule_migration_for_links.rb new file mode 100644 index 00000000000..78b83bbb502 --- /dev/null +++ b/db/post_migrate/20230208125736_schedule_migration_for_links.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +class ScheduleMigrationForLinks < Gitlab::Database::Migration[2.1] + restrict_gitlab_migration gitlab_schema: :gitlab_main + + MIGRATION = 'MigrateLinksForVulnerabilityFindings' + DELAY_INTERVAL = 2.minutes + SUB_BATCH_SIZE = 500 + BATCH_SIZE = 10000 + + def up + # no-op as it is rescheduled via db/post_migrate/20230314144640_reschedule_migration_for_links.rb + end + + def down + # no-op as it is rescheduled via db/post_migrate/20230314144640_reschedule_migration_for_links.rb + end +end |