Merge pull request #4122 from idanoo/dev

Resolve issue with backticks in raw SQL for postgresql migrations
pull/4125/head
daniel 2 years ago committed by GitHub
commit 262db2778f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save