From e81fc27a0f3c66dd45c1c7b22b4be84491d904e5 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 29 Jul 2024 11:20:14 -0400 Subject: [PATCH] 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. --- script/db_timestamps_mover.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/db_timestamps_mover.rb b/script/db_timestamps_mover.rb index fc92d54b19b..7371e214993 100644 --- a/script/db_timestamps_mover.rb +++ b/script/db_timestamps_mover.rb @@ -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