From d2b647616546ec4ad0907c31043406ab53483fe8 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 29 Sep 2019 00:50:44 -0500 Subject: [PATCH] database fix after horizon --- app/Console/Kernel.php | 3 +++ config/horizon.php | 2 +- ...9_08_19_000000_create_failed_jobs_table.php | 18 ++++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a8c5158..0664c08 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -26,6 +26,9 @@ class Kernel extends ConsoleKernel { // $schedule->command('inspire') // ->hourly(); + + //Horizon Graph Schedule + $schedule->command('horizon:snapshot')->everyFiveMinutes(); } /** diff --git a/config/horizon.php b/config/horizon.php index 58ff63e..8a40c6a 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -26,7 +26,7 @@ return [ | */ - 'path' => 'horizon', + 'path' => 'uhorizon', /* |-------------------------------------------------------------------------- diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php index 389bdf7..0d29717 100644 --- a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -13,14 +13,16 @@ class CreateFailedJobsTable extends Migration */ public function up() { - Schema::create('failed_jobs', function (Blueprint $table) { - $table->bigIncrements('id'); - $table->text('connection'); - $table->text('queue'); - $table->longText('payload'); - $table->longText('exception'); - $table->timestamp('failed_at')->useCurrent(); - }); + if(!Schema::hasTable('failed_jobs')) { + Schema::create('failed_jobs', function (Blueprint $table) { + $table->bigIncrements('id'); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } } /**