rDrama/migrations/20230226-search-modmail.sql

2 lines
215 B
MySQL
Raw Normal View History

2023-02-26 09:31:33 +00:00
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));