2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00

DEV: Add newly promoted core plugins to intermediate DB config (#33654)

Update `intermedate_db.yml` config with newly promoted core plugins
names and tables to the intermediate DB config.

It also updates the existing `user_options` table with the newly
introduced `notification_level_when_assigned` column.
This commit is contained in:
Selase Krakani 2025-07-16 17:33:51 +00:00 committed by GitHub
parent b56af654c0
commit acb23b5b4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 1 deletions

View file

@ -100,6 +100,7 @@ schema:
- "api_keys"
- "application_requests"
- "ar_internal_metadata"
- "assignments"
- "associated_groups"
- "backup_draft_posts"
- "backup_draft_topics"
@ -107,6 +108,7 @@ schema:
- "badge_groupings"
- "badge_types"
- "bookmarks"
- "calendar_events"
- "categories_web_hooks"
- "category_custom_fields"
- "category_featured_topics"
@ -138,6 +140,8 @@ schema:
- "color_scheme_colors"
- "color_schemes"
- "custom_emojis"
- "data_explorer_queries"
- "data_explorer_query_groups"
- "developers"
- "direct_message_channels"
- "direct_message_users"
@ -149,6 +153,16 @@ schema:
- "discourse_automation_pending_pms"
- "discourse_automation_stats"
- "discourse_automation_user_global_notices"
- "discourse_calendar_disabled_holidays"
- "discourse_calendar_post_event_dates"
- "discourse_post_event_events"
- "discourse_post_event_invitees"
- "discourse_reactions_reaction_users"
- "discourse_reactions_reactions"
- "discourse_rss_polling_rss_feeds"
- "discourse_subscriptions_customers"
- "discourse_subscriptions_products"
- "discourse_subscriptions_subscriptions"
- "dismissed_topic_users"
- "do_not_disturb_timings"
- "draft_sequences"
@ -161,6 +175,9 @@ schema:
- "external_upload_stubs"
- "flags"
- "form_templates"
- "gamification_leaderboards"
- "gamification_score_events"
- "gamification_scores"
- "given_daily_likes"
- "group_archived_messages"
- "group_associated_groups"
@ -209,6 +226,9 @@ schema:
- "post_search_data"
- "post_stats"
- "post_timings"
- "post_voting_comment_custom_fields"
- "post_voting_comments"
- "post_voting_votes"
- "posts"
- "problem_check_trackers"
- "published_pages"
@ -233,6 +253,7 @@ schema:
- "sidebar_section_links"
- "sidebar_sections"
- "sidebar_urls"
- "silenced_assignments"
- "single_sign_on_records"
- "site_settings"
- "sitemaps"
@ -251,6 +272,7 @@ schema:
- "theme_modifier_sets"
- "theme_settings"
- "theme_settings_migrations"
- "theme_site_settings"
- "theme_svg_sprites"
- "theme_translation_overrides"
- "themes"
@ -324,11 +346,32 @@ plugins:
- "automation"
- "chat"
- "checklist"
- "discourse-apple-auth"
- "discourse-assign"
- "discourse-calendar"
- "discourse-chat-integration"
- "discourse-data-explorer"
- "discourse-details"
- "discourse-gamification"
- "discourse-graphviz"
- "discourse-hcaptcha"
- "discourse-lazy-videos"
- "discourse-local-dates"
- "discourse-login-with-amazon"
- "discourse-lti"
- "discourse-math"
- "discourse-microsoft-auth"
- "discourse-narrative-bot"
- "discourse-oauth2-basic"
- "discourse-openid-connect"
- "discourse-patreon"
- "discourse-post-voting"
- "discourse-presence"
- "discourse-reactions"
- "discourse-rss-polling"
- "discourse-subscriptions"
- "discourse-user-notes"
- "discourse-zendesk-plugin"
- "footnote"
- "poll"
- "spoiler-alert"

View file

@ -138,6 +138,7 @@ CREATE TABLE user_options
mailing_list_mode BOOLEAN,
mailing_list_mode_frequency INTEGER,
new_topic_duration_minutes INTEGER,
notification_level_when_assigned INTEGER,
notification_level_when_replying INTEGER,
oldest_search_log_date DATETIME,
only_chat_push_notifications BOOLEAN,

View file

@ -50,6 +50,7 @@ module Migrations::Database::IntermediateDB
mailing_list_mode,
mailing_list_mode_frequency,
new_topic_duration_minutes,
notification_level_when_assigned,
notification_level_when_replying,
oldest_search_log_date,
only_chat_push_notifications,
@ -69,7 +70,7 @@ module Migrations::Database::IntermediateDB
)
VALUES (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
SQL

@ -116,6 +117,7 @@ module Migrations::Database::IntermediateDB
mailing_list_mode: nil,
mailing_list_mode_frequency: nil,
new_topic_duration_minutes: nil,
notification_level_when_assigned: nil,
notification_level_when_replying: nil,
oldest_search_log_date: nil,
only_chat_push_notifications: nil,
@ -177,6 +179,7 @@ module Migrations::Database::IntermediateDB
::Migrations::Database.format_boolean(mailing_list_mode),
mailing_list_mode_frequency,
new_topic_duration_minutes,
notification_level_when_assigned,
notification_level_when_replying,
::Migrations::Database.format_datetime(oldest_search_log_date),
::Migrations::Database.format_boolean(only_chat_push_notifications),