mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
finish fixing migrations
This commit is contained in:
parent
5596cb79cb
commit
6eb8d046fa
3 changed files with 9 additions and 2 deletions
|
@ -149,7 +149,7 @@ pub fn check_dump_diff(conn: &mut PgConnection, mut before: String, name: &str)
|
|||
}
|
||||
.expect("failed to build string");
|
||||
}
|
||||
write!(&mut output, "\n{most_similar_chunk_filtered}");
|
||||
//write!(&mut output, "\n{most_similar_chunk_filtered}");
|
||||
if !chunks_gt.is_empty() {
|
||||
chunks_gt.swap_remove(most_similar_chunk_index);}
|
||||
}
|
||||
|
|
|
@ -148,7 +148,7 @@ ALTER TABLE post_read
|
|||
ALTER TABLE received_activity
|
||||
ADD UNIQUE (ap_id),
|
||||
DROP CONSTRAINT received_activity_pkey,
|
||||
ADD COLUMN id serial PRIMARY KEY;
|
||||
ADD COLUMN id bigserial PRIMARY KEY;
|
||||
|
||||
CREATE INDEX idx_post_saved_person_id ON post_saved (person_id);
|
||||
|
||||
|
|
|
@ -945,6 +945,13 @@ CREATE TRIGGER site_aggregates_comment_insert
|
|||
WHEN ((new.local = TRUE))
|
||||
EXECUTE FUNCTION site_aggregates_comment_insert ();
|
||||
|
||||
CREATE TRIGGER site_aggregates_community_delete
|
||||
AFTER DELETE OR UPDATE OF removed,
|
||||
deleted ON community
|
||||
FOR EACH ROW
|
||||
WHEN (OLD.local = TRUE)
|
||||
EXECUTE PROCEDURE site_aggregates_community_delete ();
|
||||
|
||||
CREATE TRIGGER site_aggregates_community_insert
|
||||
AFTER INSERT OR UPDATE OF removed,
|
||||
deleted ON community
|
||||
|
|
Loading…
Reference in a new issue