add fix script
This commit is contained in:
3
script/fixes/001.sql
Normal file
3
script/fixes/001.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
set statement_timeout = 0;
|
||||
update posts set is_pending = false where is_deleted = 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);
|
||||
Reference in New Issue
Block a user