From 7301be5f78466126d12ab46cc21b1bc3c56ed2a1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Feb 2023 11:31:33 +0200 Subject: [PATCH] fix migration file --- migrations/20230226-search-modmail.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20230226-search-modmail.sql b/migrations/20230226-search-modmail.sql index 25408fb65e..53e355e59e 100644 --- a/migrations/20230226-search-modmail.sql +++ b/migrations/20230226-search-modmail.sql @@ -1 +1 @@ -select id from comments where parent_submission is null and sentto is null and (top_comment_id in (select id from comments where sentto = 2) or parent_comment_id in (select id from comments where sentto = 2)); +update comments set sentto=2 where parent_submission is null and sentto is null and (top_comment_id in (select id from comments where sentto = 2) or parent_comment_id in (select id from comments where sentto = 2));