rDrama/migrations/20230226-search-modmail.sql

2 lines
215 B
SQL

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