From 8cc775a549f80e54ef83a325f8d5267bc71e8ea7 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 12 Oct 2019 22:15:50 -0500 Subject: [PATCH] migration --- ...9_09_29_045815_create_failed_jobs_table.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/database/migrations/2019_09_29_045815_create_failed_jobs_table.php b/database/migrations/2019_09_29_045815_create_failed_jobs_table.php index 389bdf7..0d29717 100644 --- a/database/migrations/2019_09_29_045815_create_failed_jobs_table.php +++ b/database/migrations/2019_09_29_045815_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(); + }); + } } /**