mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
finish fixing migrations
This commit is contained in:
parent
5596cb79cb
commit
6eb8d046fa
@ -149,7 +149,7 @@ pub fn check_dump_diff(conn: &mut PgConnection, mut before: String, name: &str)
|
|||||||
}
|
}
|
||||||
.expect("failed to build string");
|
.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() {
|
if !chunks_gt.is_empty() {
|
||||||
chunks_gt.swap_remove(most_similar_chunk_index);}
|
chunks_gt.swap_remove(most_similar_chunk_index);}
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ ALTER TABLE post_read
|
|||||||
ALTER TABLE received_activity
|
ALTER TABLE received_activity
|
||||||
ADD UNIQUE (ap_id),
|
ADD UNIQUE (ap_id),
|
||||||
DROP CONSTRAINT received_activity_pkey,
|
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);
|
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))
|
WHEN ((new.local = TRUE))
|
||||||
EXECUTE FUNCTION site_aggregates_comment_insert ();
|
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
|
CREATE TRIGGER site_aggregates_community_insert
|
||||||
AFTER INSERT OR UPDATE OF removed,
|
AFTER INSERT OR UPDATE OF removed,
|
||||||
deleted ON community
|
deleted ON community
|
||||||
|
Loading…
Reference in New Issue
Block a user