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(); + }); + } } /**