This commit is contained in:
Nat 2025-03-25 16:35:13 +08:00
parent 83dc9a2dac
commit 1aa5105eeb
No known key found for this signature in database
GPG Key ID: 4938B35D927EC773
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class CopySolvedTopicCustomFieldToDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
BATCH_SIZE = 10000
BATCH_SIZE = 10_000
def up
max_id = DB.query_single("SELECT MAX(id) FROM topic_custom_fields").first

View File

@ -1,6 +1,8 @@
# frozen_string_literal: true
#
class CopyRemainingSolvedTopicCustomFieldToDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]
class CopyRemainingSolvedTopicCustomFieldToDiscourseSolvedSolvedTopics < ActiveRecord::Migration[
7.2
]
disable_ddl_transaction!
BATCH_SIZE = 5000