1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 18:51:40 +02:00

Rename user posts count to comments count

This commit is contained in:
Toby Zerner
2015-03-12 10:34:59 +10:30
parent 64b6698791
commit 2882ecd46e
3 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ class DiscussionsTableSeeder extends Seeder
$prefix = DB::getTablePrefix();
DB::table('users')->update([
'discussions_count' => DB::raw('(SELECT COUNT(id) FROM '.$prefix.'discussions WHERE start_user_id = '.$prefix.'users.id)'),
'posts_count' => DB::raw('(SELECT COUNT(id) FROM '.$prefix.'posts WHERE user_id = '.$prefix.'users.id and type = "comment")'),
'comments_count' => DB::raw('(SELECT COUNT(id) FROM '.$prefix.'posts WHERE user_id = '.$prefix.'users.id and type = "comment")'),
]);
}
}