lemmy/migrations
Andrew Yoon e78ba38e94
Use URL type in most outstanding struct fields (#1468)
* Use URL type in most outstanding struct fields

This fixes all known remaining cases where url fields are stored as
plain strings, with the exception of form fields where empty strings
are used as sentinels (see `diesel_option_overwrite_to_url`).

Tested for regressions in the federated docker setup attempting to
exercise all changed fields, including through apub federation.

Fixes #1385

* Add migration to fix blank-string post.url values to be null

This also then fixes #602

* Address review feedback

- Fixed some unwraps and err message formatting
- Bumped the `url` library to 2.2.1 to fix a bug with serde error
  messages
- Add unit tests for the two diesel option override functions
- Fix migration teardown by adding a no-op

* Rename lemmy_db_queries::Url to lemmy_db_queries::DbUrl

* fix compile error

* box PostOrComment variants
2021-03-02 12:41:48 +00:00
..
00000000000000_diesel_initial_setup Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-02-26-002946_create_user Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-02-27-170003_create_community Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-03-03-163336_create_post Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-03-05-233828_create_comment Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-03-30-212058_create_post_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-03-155205_create_community_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-03-155309_create_comment_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-07-003142_create_moderation_logs Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-08-015947_create_user_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-11-144915_create_mod_views Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-04-29-175834_add_delete_columns Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-05-02-051656_community_view_hot_rank Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-06-01-222649_remove_admin Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-08-11-000918_add_nsfw_columns Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-08-29-040006_add_community_count Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-09-05-230317_add_mod_ban_views Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-09-09-042010_add_stickied_posts Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-10-15-181630_add_themes Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-10-19-052737_create_user_mention Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-10-21-011237_add_default_sorts Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-10-24-002614_create_password_reset_request Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-12-09-060754_add_lang Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-12-11-181820_add_site_fields Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2019-12-29-164820_add_avatar Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-01-200418_add_email_to_user_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-02-172755_add_show_avatar_and_email_notifications_to_user Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-11-012452_add_indexes Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-13-025151_create_materialized_views Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-21-001001_create_private_message Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-29-011901_create_reply_materialized_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-01-29-030825_create_user_mention_materialized_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-02-02-004806_add_case_insensitive_usernames Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-02-06-165953_change_post_title_length Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-02-07-210055_add_comment_subscribed Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-02-08-145624_add_post_newest_activity_time Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-03-06-202329_add_post_iframely_data Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-03-26-192410_add_activitypub_tables Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-04-03-194936_add_activitypub_for_posts_and_comments Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-04-07-135912_add_user_community_apub_constraints Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-04-14-163701_update_views_for_activitypub Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-04-21-123957_remove_unique_user_constraints Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-05-05-210233_add_activitypub_for_private_messages Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-06-30-135809_remove_mat_views Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-07-08-202609_add_creator_published Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-07-12-100442_add_post_title_to_comments_view Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-07-18-234519_add_unique_community_user_actor_ids Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-08-03-000110_add_preferred_usernames_banners_and_icons Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-08-06-205355_update_community_post_count Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-08-25-132005_add_unique_ap_ids Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00
2020-09-07-231141_add_migration_utils Merge branch 'add-view-helper-functions' of https://github.com/eiknat/lemmy into eiknat-add-view-helper-functions 2020-09-23 16:16:18 -05:00
2020-10-07-234221_fix_fast_triggers Adding no conflict triggers. Fixes #1179 2020-10-07 19:05:46 -05:00
2020-10-10-035723_fix_fast_triggers_2 Fixing hot_rank_active fast triggers. Fixes #1190 2020-10-09 23:03:38 -05:00
2020-10-13-212240_create_report_tables update/fix migration, add some doc 2020-11-11 15:11:52 -05:00
2020-10-23-115011_activity_ap_id_column Add /activities endpoint (ref #1220) 2020-10-26 12:54:27 +01:00
2020-11-05-152724_activity_remove_user_id In activity table, remove `user_id` and add `sensitive` (#127) 2020-11-06 13:06:47 +00:00
2020-11-10-150835_community_follower_pending Add pending status for federated follows 2020-11-10 16:45:10 +01:00
2020-11-26-134531_delete_user Better account deletion (fixes #730) (#143) 2020-11-27 21:00:18 +00:00
2020-12-02-152437_create_site_aggregates Report only local counts in site_view. 2021-01-14 15:22:07 -05:00
2020-12-03-035643_create_user_aggregates Adding tests for current aggregates. 2020-12-09 11:52:10 -05:00
2020-12-04-183345_create_community_aggregates Halfway done with hot rank indexes. 2021-01-05 23:42:48 -05:00
2020-12-10-152350_create_post_aggregates Fixing comment count necro-bump issue. 2021-01-15 11:58:56 -05:00
2020-12-14-020038_create_comment_aggregates Halfway done with hot rank indexes. 2021-01-05 23:42:48 -05:00
2020-12-17-030456_create_alias_views Removing fast tables and old views. 2020-12-16 22:42:25 -05:00
2020-12-17-031053_remove_fast_tables_and_views Dropping the unecessary views and table triggers. 2020-12-17 15:29:10 -05:00
2021-01-05-200932_add_hot_rank_indexes Adding stickied to post_aggregates. 2021-01-07 16:22:17 -05:00
2021-01-26-173850_default_actor_id Use Url type for ap_id fields in database (fixes #1364) (#1371) 2021-01-27 11:42:23 -05:00
2021-01-27-202728_active_users_monthly Adding some recurring lemmy tasks. (#1386) 2021-01-29 11:38:27 -05:00
2021-01-31-050334_add_forum_sort_index Adding forum sort for post_aggregates. Fixes #1312 (#1400) 2021-02-01 11:53:44 -05:00
2021-02-02-153240_apub_columns Store activitypub endpoints in database (#162) 2021-02-04 16:34:58 +00:00
2021-02-10-164051_add_new_comments_sort_index Adding a new comment sort for posts. Fixes #1294 (#1425) 2021-02-18 10:38:25 -05:00
2021-02-13-210612_set_correct_aggregates_time_columns Fix aggregates time columns 2 (#1427) 2021-02-18 10:53:04 -05:00
2021-02-25-112959_remove-categories In remove categories down migration, add default for category 2021-02-25 16:16:02 +01:00
2021-02-28-162616_clean_empty_post_urls Use URL type in most outstanding struct fields (#1468) 2021-03-02 12:41:48 +00:00
.gitkeep Isomorphic docker (#1124) 2020-09-15 15:26:47 -04:00