From b89d7932509ce99febbf23ed6fc9319adfc992cb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 18 Oct 2019 19:29:03 -0600 Subject: [PATCH] Update StatusDedupe command --- app/Console/Commands/StatusDedupe.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Console/Commands/StatusDedupe.php b/app/Console/Commands/StatusDedupe.php index 844f1c604..00927838b 100644 --- a/app/Console/Commands/StatusDedupe.php +++ b/app/Console/Commands/StatusDedupe.php @@ -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')