Skip to content

Commit

Permalink
add failed jobs table
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 19, 2019
1 parent 051dea5 commit b7d2b48
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions database/migrations/2019_08_19_175727_create_failed_jobs_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
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();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('failed_jobs');
}
}

0 comments on commit b7d2b48

Please sign in to comment.