mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
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:
@ -133,7 +133,12 @@ def is_date?(string)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create_updater
|
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
|
TimestampsUpdater.new "public", ignore_tables
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user