finish fixing migrations

This commit is contained in:
Dull Bananas 2024-05-20 21:21:48 +00:00
parent 5596cb79cb
commit 6eb8d046fa
3 changed files with 9 additions and 2 deletions

View file

@ -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);}
}

View file

@ -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);

View file

@ -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