mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Merge pull request #4122 from idanoo/dev
Resolve issue with backticks in raw SQL for postgresql migrations
This commit is contained in:
commit
262db2778f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue