fix favcount

This commit is contained in:
albert
2013-02-23 19:46:32 -05:00
parent 3b4222cacd
commit 586c9a7258
3 changed files with 10 additions and 0 deletions

2
script/fixes/003.sql Normal file
View File

@@ -0,0 +1,2 @@
set statement_timeout = 0;
update posts set fav_count = (select count(*) from favorites _ where _.post_id = posts.id) where posts.created_at > '2013-02-01';