diff --git a/app/models/group_request.rb b/app/models/group_request.rb index 1d21414acf6..f6b731d2968 100644 --- a/app/models/group_request.rb +++ b/app/models/group_request.rb @@ -16,6 +16,7 @@ end # # Indexes # -# index_group_requests_on_group_id (group_id) -# index_group_requests_on_user_id (user_id) +# index_group_requests_on_group_id (group_id) +# index_group_requests_on_group_id_and_user_id (group_id,user_id) UNIQUE +# index_group_requests_on_user_id (user_id) # diff --git a/app/models/post_custom_field.rb b/app/models/post_custom_field.rb index 6dffbfc6ec6..4f133f01e47 100644 --- a/app/models/post_custom_field.rb +++ b/app/models/post_custom_field.rb @@ -17,6 +17,11 @@ end # # idx_post_custom_fields_akismet (post_id) WHERE (((name)::text = 'AKISMET_STATE'::text) AND (value = 'needs_review'::text)) # index_post_custom_fields_on_name_and_value (name, "left"(value, 200)) +# index_post_custom_fields_on_notice_args (post_id) UNIQUE WHERE ((name)::text = 'notice_args'::text) +# index_post_custom_fields_on_notice_type (post_id) UNIQUE WHERE ((name)::text = 'notice_type'::text) # index_post_custom_fields_on_post_id (post_id) UNIQUE WHERE ((name)::text = 'missing uploads'::text) # index_post_custom_fields_on_post_id_and_name (post_id,name) +# post_custom_field_broken_images_idx (post_id) UNIQUE WHERE ((name)::text = 'broken_images'::text) +# post_custom_field_downloaded_images_idx (post_id) UNIQUE WHERE ((name)::text = 'downloaded_images'::text) +# post_custom_field_large_images_idx (post_id) UNIQUE WHERE ((name)::text = 'large_images'::text) # diff --git a/app/models/user_option.rb b/app/models/user_option.rb index 8f84c5958cc..9cdfc36030a 100644 --- a/app/models/user_option.rb +++ b/app/models/user_option.rb @@ -195,8 +195,6 @@ end # user_id :integer not null, primary key # mailing_list_mode :boolean default(FALSE), not null # email_digests :boolean -# email_level :integer default(1), not null -# email_messages_level :integer default(0), not null # external_links_in_new_tab :boolean default(FALSE), not null # enable_quoting :boolean default(TRUE), not null # dynamic_favicon :boolean default(FALSE), not null @@ -219,6 +217,9 @@ end # hide_profile_and_presence :boolean default(FALSE), not null # text_size_key :integer default(0), not null # text_size_seq :integer default(0), not null +# email_level :integer default(1), not null +# email_messages_level :integer default(0), not null +# title_count_mode_key :integer default(0), not null # # Indexes #