mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +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()
|
||||
{
|
||||
|
||||
if(config('database.default') == 'pgsql') {
|
||||
$this->info('This command is not compatible with Postgres, we are working on a fix.');
|
||||
return;
|
||||
}
|
||||
DB::table('statuses')
|
||||
->selectRaw('id, uri, count(uri) as occurences')
|
||||
->whereNull('deleted_at')
|
||||
|
|
Loading…
Reference in a new issue