소스 검색

Merge pull request #4122 from idanoo/dev

Resolve issue with backticks in raw SQL for postgresql migrations
daniel 2 년 전
부모
커밋
262db2778f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/FixDuplicateProfiles.php

+ 1 - 1
app/Console/Commands/FixDuplicateProfiles.php

@@ -71,7 +71,7 @@ class FixDuplicateProfiles extends Command
     {
         $duplicates = DB::table('profiles')
             ->whereNull('domain')
-            ->select('username', DB::raw('COUNT(*) as `count`'))
+            ->select('username', DB::raw('COUNT(*) as "count"'))
             ->groupBy('username')
             ->havingRaw('COUNT(*) > 1')
             ->pluck('username');