mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-08 16:39:22 +00:00
nullable read_comments_amount
This commit is contained in:
commit
54faf78729
|
@ -18,13 +18,13 @@ impl PersonPostAggregates {
|
|||
fn as_select_unwrap() -> (
|
||||
post_actions::person_id,
|
||||
post_actions::post_id,
|
||||
post_actions::read_comments_amount,
|
||||
dsl::AssumeNotNull<post_actions::read_comments_amount>,
|
||||
dsl::AssumeNotNull<post_actions::read_comments>,
|
||||
) {
|
||||
(
|
||||
post_actions::person_id,
|
||||
post_actions::post_id,
|
||||
post_actions::read_comments_amount,
|
||||
post_actions::read_comments_amount.assume_not_null(),
|
||||
post_actions::read_comments.assume_not_null(),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -690,7 +690,7 @@ diesel::table! {
|
|||
person_id -> Int4,
|
||||
read -> Nullable<Timestamptz>,
|
||||
read_comments -> Nullable<Timestamptz>,
|
||||
read_comments_amount -> Int8,
|
||||
read_comments_amount -> Nullable<Int8>,
|
||||
saved -> Nullable<Timestamptz>,
|
||||
liked -> Nullable<Timestamptz>,
|
||||
like_score -> Nullable<Int2>,
|
||||
|
|
|
@ -166,8 +166,7 @@ ALTER TABLE post_actions
|
|||
ALTER COLUMN read DROP NOT NULL,
|
||||
ALTER COLUMN read DROP DEFAULT,
|
||||
ADD COLUMN read_comments timestamptz,
|
||||
-- TODO make nullable
|
||||
ADD COLUMN read_comments_amount bigint NOT NULL,
|
||||
ADD COLUMN read_comments_amount bigint,
|
||||
ADD COLUMN saved timestamptz,
|
||||
ADD COLUMN liked timestamptz,
|
||||
ADD COLUMN like_score smallint,
|
||||
|
|
Loading…
Reference in a new issue