]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/community.rs
Making community_follower.pending column not null.
[lemmy.git] / crates / db_schema / src / source / community.rs
index 7693f2f419c8d88ac335930632873e333d32bed2..9700e07a610a3bcc6c4c694592f8ffb31519e930 100644 (file)
@@ -128,7 +128,7 @@ pub struct CommunityFollower {
   pub community_id: CommunityId,
   pub person_id: PersonId,
   pub published: chrono::NaiveDateTime,
-  pub pending: Option<bool>,
+  pub pending: bool,
 }
 
 #[derive(Clone)]
@@ -137,5 +137,5 @@ pub struct CommunityFollower {
 pub struct CommunityFollowerForm {
   pub community_id: CommunityId,
   pub person_id: PersonId,
-  pub pending: bool,
+  pub pending: Option<bool>,
 }