fix for mod queue logic

This commit is contained in:
albert
2013-02-22 20:59:21 -05:00
parent e0dfd14804
commit 4203f344c0
3 changed files with 3 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
set statement_timeout = 0;
update posts set is_pending = false where is_deleted = true;
update posts set is_pending = false where is_deleted = true and is_pending = true;
update posts set last_commented_at = null where last_commented_at is not null and not exists (select 1 from comments _ where _.post_id = posts.id limit 1);