Skip to content

Commit

Permalink
added failed jobs table
Browse files Browse the repository at this point in the history
  • Loading branch information
MelonSmasher committed Aug 21, 2017
1 parent e5d620c commit 204c886
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions database/migrations/2017_08_21_194641_create_jobs_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

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

class CreateJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue');
$table->longText('payload');
$table->tinyInteger('attempts')->unsigned();
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
$table->index(['queue', 'reserved_at']);
});
}

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

0 comments on commit 204c886

Please sign in to comment.