diff --git a/framework/core/src/Core/Seeders/DiscussionsTableSeeder.php b/framework/core/src/Core/Seeders/DiscussionsTableSeeder.php index 951ce6939..81041e5c0 100644 --- a/framework/core/src/Core/Seeders/DiscussionsTableSeeder.php +++ b/framework/core/src/Core/Seeders/DiscussionsTableSeeder.php @@ -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)'), - 'comments_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\')'), ]); } }