From 1d442ece31905063515b989097d044c37054d4f5 Mon Sep 17 00:00:00 2001 From: saint Date: Sun, 18 Aug 2024 19:16:03 +1000 Subject: [PATCH] v0.48.1 Further attempts to address MariaDB challenges and make things as foolproof as possible. --- goss-cleanup.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/goss-cleanup.rb b/goss-cleanup.rb index 06a7c31..3bcf820 100644 --- a/goss-cleanup.rb +++ b/goss-cleanup.rb @@ -37,10 +37,10 @@ class GossamerForumsCleaner topic = Topic.find_by(id: field.topic_id) if topic puts "Deleting topic #{topic.title} (ID: #{topic.id})" - topic.posts.each do |post| - puts "Deleting post #{post.id} in topic #{topic.id}" - post.destroy - end +# topic.posts.each do |post| +# puts "Deleting post #{post.id} in topic #{topic.id}" +# post.destroy +# end topic.destroy end end @@ -77,7 +77,7 @@ class GossamerForumsCleaner def perform_cleanup puts "Cleanup beginning!" # cleanup_messages - cleanup_posts +# cleanup_posts cleanup_topics # cleanup_categories # cleanup_users