Pārlūkot izejas kodu

Update StatusDedupe command

Daniel Supernault 5 gadi atpakaļ
vecāks
revīzija
b89d793250
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      app/Console/Commands/StatusDedupe.php

+ 5 - 0
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')