FIX: db_timestamps_mover errors from discourse-voting plugin (#28123)

https://github.com/discourse/discourse-topic-voting/pull/196

Some tables in that plugin are read-only, so the script fails when
trying to update rows in those tables. Add them to the ignore list.
This commit is contained in:
Neil Lalonde 2024-07-29 11:20:14 -04:00 committed by GitHub
parent 9c57be6403
commit e81fc27a0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -133,7 +133,12 @@ def is_date?(string)
end
def create_updater
ignore_tables = %w[user_second_factors]
ignore_tables = %w[
user_second_factors
discourse_voting_topic_vote_count
discourse_voting_votes
discourse_voting_category_settings
]
TimestampsUpdater.new "public", ignore_tables
end