1
0
Fork 0

Update StatusDedupe command

This commit is contained in:
Daniel Supernault 2019-10-18 19:29:03 -06:00
parent 09e406ec2d
commit b89d793250
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 0 deletions

View File

@ -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')