lemmy/migrations
Nutomic 0f414a95d5
Local only community (#4350)
* Add support for local only community (fixes #1576)

* add filters and tests to db views

* dont federate local only community

* test get apub community http

* tests

* more checks

* wip

* api test

* fix tests

* change community.local_only column to visibility enum
(for private communities)

* sql fmt

* rename vars

* clippy

* fix tests

* update lib

* review

* fix js client version

* update client
2024-01-25 11:04:25 -05:00
..
00000000000000_diesel_initial_setup
2019-02-26-002946_create_user
2019-02-27-170003_create_community
2019-03-03-163336_create_post
2019-03-05-233828_create_comment
2019-03-30-212058_create_post_view
2019-04-03-155205_create_community_view
2019-04-03-155309_create_comment_view
2019-04-07-003142_create_moderation_logs
2019-04-08-015947_create_user_view
2019-04-11-144915_create_mod_views
2019-04-29-175834_add_delete_columns
2019-05-02-051656_community_view_hot_rank
2019-06-01-222649_remove_admin
2019-08-11-000918_add_nsfw_columns
2019-08-29-040006_add_community_count
2019-09-05-230317_add_mod_ban_views
2019-09-09-042010_add_stickied_posts
2019-10-15-181630_add_themes
2019-10-19-052737_create_user_mention
2019-10-21-011237_add_default_sorts
2019-10-24-002614_create_password_reset_request
2019-12-09-060754_add_lang
2019-12-11-181820_add_site_fields
2019-12-29-164820_add_avatar
2020-01-01-200418_add_email_to_user_view
2020-01-02-172755_add_show_avatar_and_email_notifications_to_user
2020-01-11-012452_add_indexes
2020-01-13-025151_create_materialized_views
2020-01-21-001001_create_private_message
2020-01-29-011901_create_reply_materialized_view
2020-01-29-030825_create_user_mention_materialized_view
2020-02-02-004806_add_case_insensitive_usernames
2020-02-06-165953_change_post_title_length
2020-02-07-210055_add_comment_subscribed
2020-02-08-145624_add_post_newest_activity_time
2020-03-06-202329_add_post_iframely_data
2020-03-26-192410_add_activitypub_tables
2020-04-03-194936_add_activitypub_for_posts_and_comments
2020-04-07-135912_add_user_community_apub_constraints
2020-04-14-163701_update_views_for_activitypub
2020-04-21-123957_remove_unique_user_constraints
2020-05-05-210233_add_activitypub_for_private_messages
2020-06-30-135809_remove_mat_views
2020-07-08-202609_add_creator_published
2020-07-12-100442_add_post_title_to_comments_view
2020-07-18-234519_add_unique_community_user_actor_ids
2020-08-03-000110_add_preferred_usernames_banners_and_icons
2020-08-06-205355_update_community_post_count
2020-08-25-132005_add_unique_ap_ids
2020-09-07-231141_add_migration_utils
2020-10-07-234221_fix_fast_triggers
2020-10-10-035723_fix_fast_triggers_2
2020-10-13-212240_create_report_tables
2020-10-23-115011_activity_ap_id_column
2020-11-05-152724_activity_remove_user_id
2020-11-10-150835_community_follower_pending
2020-11-26-134531_delete_user Adding SQL format checking via `pg_format` / pgFormatter (#3740) 2023-08-02 12:44:51 -04:00
2020-12-02-152437_create_site_aggregates
2020-12-03-035643_create_user_aggregates
2020-12-04-183345_create_community_aggregates
2020-12-10-152350_create_post_aggregates
2020-12-14-020038_create_comment_aggregates
2020-12-17-030456_create_alias_views
2020-12-17-031053_remove_fast_tables_and_views
2021-01-05-200932_add_hot_rank_indexes
2021-01-26-173850_default_actor_id
2021-01-27-202728_active_users_monthly
2021-01-31-050334_add_forum_sort_index
2021-02-02-153240_apub_columns
2021-02-10-164051_add_new_comments_sort_index
2021-02-13-210612_set_correct_aggregates_time_columns
2021-02-25-112959_remove-categories
2021-02-28-162616_clean_empty_post_urls
2021-03-04-040229_clean_icon_urls
2021-03-09-171136_split_user_table_2
2021-03-19-014144_add_col_local_user_validator_time
2021-03-20-185321_move_matrix_id_to_person
2021-03-31-103917_add_show_score_setting
2021-03-31-105915_add_bot_account
2021-03-31-144349_add_site_short_description
2021-04-01-173552_rename_preferred_username_to_display_name
2021-04-01-181826_add_community_agg_active_monthly_index
2021-04-02-021422_remove_community_creator
2021-04-20-155001_limit-admins-create-community
2021-04-24-174047_add_show_read_post_setting
2021-07-19-130929_add_show_new_post_notifs_setting
2021-07-20-102033_actor_name_length
2021-08-02-002342_comment_count_fixes
2021-08-04-223559_create_user_community_block
2021-08-16-004209_fix_remove_bots_from_aggregates
2021-08-17-210508_create_mod_transfer_community
2021-09-20-112945_jwt-secret
2021-10-01-141650_create_admin_purge
2021-11-22-135324_add_activity_ap_id_index
2021-11-22-143904_add_required_public_key Adding SQL format checking via `pg_format` / pgFormatter (#3740) 2023-08-02 12:44:51 -04:00
2021-11-23-031528_add_report_published_index
2021-11-23-132840_email_verification
2021-11-23-153753_add_invite_only_columns
2021-12-09-225529_add_published_to_email_verification
2021-12-14-181537_add_temporary_bans
2022-01-04-034553_add_hidden_column
2022-01-20-160328_remove_site_creator
2022-01-28-104106_instance-actor
2022-02-01-154240_add_community_title_index
2022-02-18-210946_default_theme
2022-04-04-183652_update_community_aggregates_on_soft_delete
2022-04-11-210137_fix_unique_changeme
2022-04-12-114352_default_post_listing_type
2022-04-12-185205_change_default_listing_type_to_local
2022-04-19-111004_default_require_application
2022-04-26-105145_only_mod_can_post
2022-05-19-153931_legal-information
2022-05-20-135341_embed-url Adding SQL format checking via `pg_format` / pgFormatter (#3740) 2023-08-02 12:44:51 -04:00
2022-06-12-012121_add_site_hide_modlog_names
2022-06-13-124806_post_report_name_length
2022-06-21-123144_language-tags
2022-07-07-182650_comment_ltrees
2022-08-04-150644_add_application_email_admins
2022-08-04-214722_add_distinguished_comment
2022-08-05-203502_add_person_post_aggregates
2022-08-22-193848_comment-language-tags
2022-09-07-113813_drop_ccnew_indexes_function
2022-09-07-114618_pm-reports
2022-09-08-102358_site-and-community-languages
2022-09-24-161829_remove_table_aliases
2022-10-06-183632_move_blocklist_to_db
2022-11-13-181529_create_taglines
2022-11-20-032430_sticky_local
2022-11-21-143249_remove-federation-settings
2022-11-21-204256_user-following
2022-12-05-110642_registration_mode
2023-01-17-165819_cleanup_post_aggregates_indexes Adding SQL format checking via `pg_format` / pgFormatter (#3740) 2023-08-02 12:44:51 -04:00
2023-02-01-012747_fix_active_index
2023-02-05-102549_drop-site-federation-debug
2023-02-07-030958_community-collections
2023-02-11-173347_custom_emojis
2023-02-13-172528_add_report_email_admins
2023-02-13-221303_add_instance_software_and_version
2023-02-15-212546_add_post_comment_saved_indexes
2023-02-16-194139_add_totp_secret
2023-04-14-175955_add_listingtype_sorttype_enums
2023-04-23-164732_add_person_details_indexes
2023-05-10-095739_force_enable_undetermined_language
2023-06-06-104440_index_post_url
2023-06-07-105918_add_hot_rank_columns
2023-06-17-175955_add_listingtype_sorttype_hour_enums
2023-06-19-055530_add_retry_worker_setting
2023-06-19-120700_no_double_deletion
2023-06-20-191145_add_listingtype_sorttype_3_6_9_months_enums Adding SQL format checking via `pg_format` / pgFormatter (#3740) 2023-08-02 12:44:51 -04:00
2023-06-21-153242_add_captcha
2023-06-22-051755_fix_local_communities_marked_non_local
2023-06-22-101245_increase_user_theme_column_size
2023-06-24-072904_add_open_links_in_new_tab_setting
2023-06-24-185942_aggegates_published_indexes
2023-06-27-065106_add_ui_settings
2023-07-04-153335_add_optimized_indexes
2023-07-05-000058_person-admin
2023-07-06-151124_hot-rank-future
2023-07-08-101154_fix_soft_delete_aggregates
2023-07-10-075550_add-infinite-scroll-setting
2023-07-11-084714_receive_activity_table
2023-07-14-154840_add_optimized_indexes_published
2023-07-14-215339_aggregates_nonzero_indexes
2023-07-18-082614_post_aggregates_community_id
2023-07-19-163511_comment_sort_hot_rank_then_score
2023-07-24-232635_trigram-index
2023-07-26-000217_create_controversial_indexes
2023-07-26-222023_site-aggregates-one
2023-07-27-134652_remove-expensive-broken-trigger
2023-08-01-101826_admin_flag_local_user
2023-08-01-115243_persistent-activity-queue
2023-08-02-144930_password-reset-token
2023-08-02-174444_fix-timezones
2023-08-08-163911_add_post_listing_mode_setting
2023-08-09-101305_user_instance_block
2023-08-23-182533_scaled_rank
2023-08-29-183053_add_listing_type_moderator_view
2023-08-31-205559_add_image_upload
2023-09-01-112158_auto_resolve_report
2023-09-07-215546_post-queries-efficient
2023-09-11-110040_rework-2fa-setup
2023-09-12-194850_add_federation_worker_index
2023-09-18-141700_login-token
2023-09-20-110614_drop-show-new-post-notifs
2023-09-28-084231_import_user_settings_rate_limit
2023-10-02-145002_community_followers_count_federated
2023-10-06-133405_add_keyboard_navigation_setting
2023-10-13-175712_allow_animated_avatars
2023-10-17-181800_drop_remove_community_expires
2023-10-23-184941_hot_rank_greatest_fix
2023-10-24-030352_change_primary_keys_and_remove_some_id_columns
2023-10-24-131607_proxy_links
2023-10-24-183747_autocollapse_bot_comments Add UI setting for collapsing bot comments. Fixes #3838 (#4098) 2023-11-06 16:09:12 -05:00
2023-10-27-142514_post_url_content_type
2023-11-01-223740_federation-published
2023-11-02-120140_apub-signed-fetch
2023-11-07-135409_inbox_unique
2023-11-22-194806_low_rank_defaults Setting rank column defaults to a small number. Fixes #4178 (#4191) 2023-11-23 20:39:46 -05:00
2023-12-06-180359_edit_active_users
2023-12-19-210053_tolerable-batch-insert-speed
2023-12-22-040137_make-mixed-sorting-directions-work-with-tuple-comparison
2024-01-02-094916_site-name-not-unique
2024-01-05-213000_community_aggregates_add_local_subscribers
2024-01-15-100133_local-only-community Local only community (#4350) 2024-01-25 11:04:25 -05:00
.gitkeep