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

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