mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update StatusDedupe command
This commit is contained in:
parent
09e406ec2d
commit
b89d793250
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ class StatusDedupe extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(config('database.default') == 'pgsql') {
|
||||||
|
$this->info('This command is not compatible with Postgres, we are working on a fix.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
DB::table('statuses')
|
DB::table('statuses')
|
||||||
->selectRaw('id, uri, count(uri) as occurences')
|
->selectRaw('id, uri, count(uri) as occurences')
|
||||||
->whereNull('deleted_at')
|
->whereNull('deleted_at')
|
||||||
|
|
Loading…
Reference in a new issue