Files
danbooru/script/fixes/003.sql
2013-02-23 19:46:32 -05:00

3 lines
157 B
SQL

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