From a475e0925730ad53e9dc9310bd50a6b6c0afd877 Mon Sep 17 00:00:00 2001 From: leoseg <70430884+leoseg@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:32:56 +0100 Subject: [PATCH] Update migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql Co-authored-by: dullbananas --- .../up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql b/migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql index 96ea1f48c..03f9e4008 100644 --- a/migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql +++ b/migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql @@ -1,4 +1,4 @@ -CREATE INDEX idx_post_actions_on_read_read_not_null ON post_actions (person_id, read) +CREATE INDEX idx_post_actions_on_read_read_not_null ON post_actions (person_id, read, post_id) WHERE read IS NOT NULL;