A platform for community discussion. Free, open, simple.
DEV: Update IntermediateDB schema again (#40121)
Jarek Radoszc8a38e144c32
diff --git a/migrations/config/schema/intermediate_db/ignored.rb b/migrations/config/schema/intermediate_db/ignored.rbindex 2382d7c7caf..4e98e6cee63 100644--- a/migrations/config/schema/intermediate_db/ignored.rb+++ b/migrations/config/schema/intermediate_db/ignored.rb@@ -159,6 +159,7 @@ Migrations::Database::Schema.ignored do:backup_metadata,:badge_types,:bookmarks,+ :browser_pageview_event_scores,:browser_pageview_events,:custom_emojis,:developers,diff --git a/migrations/config/schema/plugin_manifest.yml b/migrations/config/schema/plugin_manifest.ymlindex f8bfa340b28..ead1b7ddfef 100644--- a/migrations/config/schema/plugin_manifest.yml+++ b/migrations/config/schema/plugin_manifest.yml@@ -205,7 +205,7 @@ plugin_checksums:discourse-ai: ef2706fb0393edaace313b0738419d52discourse-assign: 7a7a36e8ac0214e8a6aca1a1ed9899aadiscourse-cakeday: a5bb91366c8dc8d267088eb0c2679187- discourse-calendar: 03beabdd81496f54b385e9493fea3438+ discourse-calendar: 3f8dd26f85e1c26146fbf1c9a882d233discourse-chat-integration: ffa3bf5dba9089491d2fc02971eb96f8discourse-data-explorer: 3c8891eb000d2f91f1edf1a48c28a96ediscourse-gamification: 633256e241b030fddcc059076f7474f8diff --git a/migrations/db/intermediate_db_schema/100-base-schema.sql b/migrations/db/intermediate_db_schema/100-base-schema.sqlindex 2d78cc5e162..ab903d130ba 100644--- a/migrations/db/intermediate_db_schema/100-base-schema.sql+++ b/migrations/db/intermediate_db_schema/100-base-schema.sql@@ -407,55 +407,56 @@ CREATE TABLE user_fieldsCREATE TABLE user_options(- user_id NUMERIC NOT NULL PRIMARY KEY,- allow_private_messages BOOLEAN,- auto_track_topics_after_msecs INTEGER,- automatically_unpin_topics BOOLEAN,- bookmark_auto_delete_preference INTEGER,- color_scheme_id NUMERIC,- composition_mode INTEGER,- dark_scheme_id NUMERIC,- default_calendar INTEGER,- digest_after_minutes INTEGER,- dynamic_favicon BOOLEAN,- email_digests BOOLEAN,- email_in_reply_to BOOLEAN,- email_level INTEGER,- email_messages_level INTEGER,- email_previous_replies INTEGER,- enable_allowed_pm_users BOOLEAN,- enable_defer BOOLEAN,- enable_markdown_monospace_font BOOLEAN,- enable_quoting BOOLEAN,- enable_smart_lists BOOLEAN,- external_links_in_new_tab BOOLEAN,- hide_presence BOOLEAN,- hide_profile BOOLEAN,- hide_profile_and_presence BOOLEAN,- homepage_id NUMERIC,- include_tl0_in_digests BOOLEAN,- interface_color_mode INTEGER,- last_redirected_to_top_at DATETIME,- like_notification_frequency INTEGER,- mailing_list_mode BOOLEAN,- mailing_list_mode_frequency INTEGER,- new_topic_duration_minutes INTEGER,- notification_level_when_replying INTEGER,- notify_on_linked_posts BOOLEAN,- oldest_search_log_date DATETIME,- seen_popups INTEGER,- show_original_content BOOLEAN,- sidebar_link_to_filtered_list BOOLEAN,- sidebar_show_count_of_new_items BOOLEAN,- skip_new_user_tips BOOLEAN,- text_size_key INTEGER,- text_size_seq INTEGER,- theme_ids INTEGER,- theme_key_seq INTEGER,- timezone TEXT,- title_count_mode_key INTEGER,- topics_unread_when_closed BOOLEAN,- watched_precedence_over_muted BOOLEAN+ user_id NUMERIC NOT NULL PRIMARY KEY,+ allow_private_messages BOOLEAN,+ auto_track_topics_after_msecs INTEGER,+ automatically_unpin_topics BOOLEAN,+ bookmark_auto_delete_preference INTEGER,+ color_scheme_id NUMERIC,+ composition_mode INTEGER,+ dark_scheme_id NUMERIC,+ default_calendar INTEGER,+ digest_after_minutes INTEGER,+ dynamic_favicon BOOLEAN,+ email_digests BOOLEAN,+ email_in_reply_to BOOLEAN,+ email_level INTEGER,+ email_messages_level INTEGER,+ email_previous_replies INTEGER,+ enable_allowed_pm_users BOOLEAN,+ enable_defer BOOLEAN,+ enable_markdown_monospace_font BOOLEAN,+ enable_quoting BOOLEAN,+ enable_smart_lists BOOLEAN,+ enable_upcoming_change_available_notifications BOOLEAN,+ external_links_in_new_tab BOOLEAN,+ hide_presence BOOLEAN,+ hide_profile BOOLEAN,+ hide_profile_and_presence BOOLEAN,+ homepage_id NUMERIC,+ include_tl0_in_digests BOOLEAN,+ interface_color_mode INTEGER,+ last_redirected_to_top_at DATETIME,+ like_notification_frequency INTEGER,+ mailing_list_mode BOOLEAN,+ mailing_list_mode_frequency INTEGER,+ new_topic_duration_minutes INTEGER,+ notification_level_when_replying INTEGER,+ notify_on_linked_posts BOOLEAN,+ oldest_search_log_date DATETIME,+ seen_popups INTEGER,+ show_original_content BOOLEAN,+ sidebar_link_to_filtered_list BOOLEAN,+ sidebar_show_count_of_new_items BOOLEAN,+ skip_new_user_tips BOOLEAN,+ text_size_key INTEGER,+ text_size_seq INTEGER,+ theme_ids INTEGER,+ theme_key_seq INTEGER,+ timezone TEXT,+ title_count_mode_key INTEGER,+ topics_unread_when_closed BOOLEAN,+ watched_precedence_over_muted BOOLEAN);diff --git a/migrations/lib/database/intermediate_db/user_option.rb b/migrations/lib/database/intermediate_db/user_option.rbindex 6023bfbfd43..f49cfa98bac 100644--- a/migrations/lib/database/intermediate_db/user_option.rb+++ b/migrations/lib/database/intermediate_db/user_option.rb@@ -31,6 +31,7 @@ module Migrationsenable_markdown_monospace_font,enable_quoting,enable_smart_lists,+ enable_upcoming_change_available_notifications,external_links_in_new_tab,hide_presence,hide_profile,@@ -61,62 +62,63 @@ module Migrationswatched_precedence_over_muted)VALUES (- ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?+ ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)SQLprivate_constant :SQL# Creates a new `user_options` record in the IntermediateDB.#- # @param user_id [Integer, String]- # @param allow_private_messages [Boolean, nil]- # @param auto_track_topics_after_msecs [Integer, nil]- # @param automatically_unpin_topics [Boolean, nil]- # @param bookmark_auto_delete_preference [Integer, nil]- # @param color_scheme_id [Integer, String, nil]- # @param composition_mode [Integer, nil]- # @param dark_scheme_id [Integer, String, nil]- # @param default_calendar [Integer, nil]- # @param digest_after_minutes [Integer, nil]- # @param dynamic_favicon [Boolean, nil]- # @param email_digests [Boolean, nil]- # @param email_in_reply_to [Boolean, nil]- # @param email_level [Integer, nil]- # @param email_messages_level [Integer, nil]- # @param email_previous_replies [Integer, nil]- # @param enable_allowed_pm_users [Boolean, nil]- # @param enable_defer [Boolean, nil]- # @param enable_markdown_monospace_font [Boolean, nil]- # @param enable_quoting [Boolean, nil]- # @param enable_smart_lists [Boolean, nil]- # @param external_links_in_new_tab [Boolean, nil]- # @param hide_presence [Boolean, nil]- # @param hide_profile [Boolean, nil]- # @param hide_profile_and_presence [Boolean, nil]- # @param homepage_id [Integer, String, nil]- # @param include_tl0_in_digests [Boolean, nil]- # @param interface_color_mode [Integer, nil]- # @param last_redirected_to_top_at [Time, nil]- # @param like_notification_frequency [Integer, nil]- # @param mailing_list_mode [Boolean, nil]- # @param mailing_list_mode_frequency [Integer, nil]- # @param new_topic_duration_minutes [Integer, nil]- # @param notification_level_when_replying [Integer, nil]- # @param notify_on_linked_posts [Boolean, nil]- # @param oldest_search_log_date [Time, nil]- # @param seen_popups [Integer, nil]- # @param show_original_content [Boolean, nil]- # @param sidebar_link_to_filtered_list [Boolean, nil]- # @param sidebar_show_count_of_new_items [Boolean, nil]- # @param skip_new_user_tips [Boolean, nil]- # @param text_size_key [Integer, nil]- # @param text_size_seq [Integer, nil]- # @param theme_ids [Integer, nil]- # @param theme_key_seq [Integer, nil]- # @param timezone [String, nil]- # @param title_count_mode_key [Integer, nil]- # @param topics_unread_when_closed [Boolean, nil]- # @param watched_precedence_over_muted [Boolean, nil]+ # @param user_id [Integer, String]+ # @param allow_private_messages [Boolean, nil]+ # @param auto_track_topics_after_msecs [Integer, nil]+ # @param automatically_unpin_topics [Boolean, nil]+ # @param bookmark_auto_delete_preference [Integer, nil]+ # @param color_scheme_id [Integer, String, nil]+ # @param composition_mode [Integer, nil]+ # @param dark_scheme_id [Integer, String, nil]+ # @param default_calendar [Integer, nil]+ # @param digest_after_minutes [Integer, nil]+ # @param dynamic_favicon [Boolean, nil]+ # @param email_digests [Boolean, nil]+ # @param email_in_reply_to [Boolean, nil]+ # @param email_level [Integer, nil]+ # @param email_messages_level [Integer, nil]+ # @param email_previous_replies [Integer, nil]+ # @param enable_allowed_pm_users [Boolean, nil]+ # @param enable_defer [Boolean, nil]+ # @param enable_markdown_monospace_font [Boolean, nil]+ # @param enable_quoting [Boolean, nil]+ # @param enable_smart_lists [Boolean, nil]+ # @param enable_upcoming_change_available_notifications [Boolean, nil]+ # @param external_links_in_new_tab [Boolean, nil]+ # @param hide_presence [Boolean, nil]+ # @param hide_profile [Boolean, nil]+ # @param hide_profile_and_presence [Boolean, nil]+ # @param homepage_id [Integer, String, nil]+ # @param include_tl0_in_digests [Boolean, nil]+ # @param interface_color_mode [Integer, nil]+ # @param last_redirected_to_top_at [Time, nil]+ # @param like_notification_frequency [Integer, nil]+ # @param mailing_list_mode [Boolean, nil]+ # @param mailing_list_mode_frequency [Integer, nil]+ # @param new_topic_duration_minutes [Integer, nil]+ # @param notification_level_when_replying [Integer, nil]+ # @param notify_on_linked_posts [Boolean, nil]+ # @param oldest_search_log_date [Time, nil]+ # @param seen_popups [Integer, nil]+ # @param show_original_content [Boolean, nil]+ # @param sidebar_link_to_filtered_list [Boolean, nil]+ # @param sidebar_show_count_of_new_items [Boolean, nil]+ # @param skip_new_user_tips [Boolean, nil]+ # @param text_size_key [Integer, nil]+ # @param text_size_seq [Integer, nil]+ # @param theme_ids [Integer, nil]+ # @param theme_key_seq [Integer, nil]+ # @param timezone [String, nil]+ # @param title_count_mode_key [Integer, nil]+ # @param topics_unread_when_closed [Boolean, nil]+ # @param watched_precedence_over_muted [Boolean, nil]## @return [void]def self.create(@@ -141,6 +143,7 @@ module Migrationsenable_markdown_monospace_font: nil,enable_quoting: nil,enable_smart_lists: nil,+ enable_upcoming_change_available_notifications: nil,external_links_in_new_tab: nil,hide_presence: nil,hide_profile: nil,@@ -193,6 +196,7 @@ module MigrationsMigrations::Database.format_boolean(enable_markdown_monospace_font),Migrations::Database.format_boolean(enable_quoting),Migrations::Database.format_boolean(enable_smart_lists),+ Migrations::Database.format_boolean(enable_upcoming_change_available_notifications),Migrations::Database.format_boolean(external_links_in_new_tab),Migrations::Database.format_boolean(hide_presence),Migrations::Database.format_boolean(hide_profile),