kopia lustrzana https://github.com/pixelfed/pixelfed
Resolve issue with raw sql backticks for postgresql migrations
rodzic
e4e7b5062a
commit
55dc9b0aaa
|
@ -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');
|
||||||
|
|
Ładowanie…
Reference in New Issue