0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/discourse-solved/db/migrate
Martin Brennan 982fba1536
FIX: Add missing solved_topics_auto_close_hours custom field entries (#42255)
When `solved_topics_auto_close_hours` is null/missing in the DB for
Support type categories, the UI defaults to 48 hours for this setting,
but this can be surprising for admins when changing some other support
category setting, as it will go from 0 -> 48 hours in the background.

This commit fixes the issue by backfilling a new custom field
value for `solved_topics_auto_close_hours`, setting it to `0`
on categories with `enable_accepted_answers` set to true
and no existing value for the field.

New support categories are unaffected, as we set 48 hours by
default there.
2026-08-04 09:04:44 +10:00
..
20191209095548_ensures_unique_accepted_answer_post_id.rb
20210218022053_solved_fix_high_auto_close_topic_hours.rb
20210429154322_remove_nil_custom_fields_from_solved.rb
20210618142654_recreate_solutions_column.rb
20221121223417_rename_badges.rb
20240116100023_fill_accept_all_solutions_allowed_groups_based_on_deprecated_setting.rb
20250318024824_create_discourse_solved_solved_topics.rb
20250318024953_copy_solved_topic_custom_field_to_discourse_solved_solved_topics.rb
20250318024954_remove_duplicates_from_discourse_solved_solved_topics.rb
20250318025147_add_index_for_discourse_solved_topics.rb
20250325074111_copy_remaining_solved_topic_custom_field_to_discourse_solved_solved_topics.rb
20260310120000_populate_solved_category_custom_fields_from_site_settings.rb
20260319120000_add_notify_on_solved_to_user_options.rb FEATURE: add setting to opt out of solved notifications (#38730) 2026-04-01 18:47:30 +04:00
20260408165014_add_discourse_solved_topic_answers.rb DEV: Allow multiple solutions in solved plugin (#39806) 2026-05-28 07:12:28 -05:00
20260429122035_create_discourse_solved_shared_issues.rb FEATURE: add solved me too button (#39652) 2026-05-13 17:03:25 +04:00
20260803015314_populate_missing_solved_topics_auto_close_hours.rb FIX: Add missing solved_topics_auto_close_hours custom field entries (#42255) 2026-08-04 09:04:44 +10:00