Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

rename batch size env var for migrations

ulfertsd7c399320b91
diff --git a/db/migrate/migration_utils/utils.rb b/db/migrate/migration_utils/utils.rb
index f31a20f75b0..db8c6262d0e 100644
--- a/db/migrate/migration_utils/utils.rb
+++ b/db/migrate/migration_utils/utils.rb
@@ -39,7 +39,7 @@ module Migration
end
def in_configurable_batches(klass, default_batch_size: 1000)
- batches = ENV["OPENPROJECT_MIGRATION_AGGREGATE_JOURNALS_BATCH_SIZE"]&.to_i || default_batch_size
+ batches = ENV["OPENPROJECT_MIGRATION_BATCH_SIZE"]&.to_i || default_batch_size
klass.in_batches(of: batches)
end