1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00

Merge pull request #4122 from idanoo/dev

Resolve issue with backticks in raw SQL for postgresql migrations
This commit is contained in:
daniel 2023-01-29 01:18:28 -07:00 committed by GitHub
commit 262db2778f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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