Skip to content

Commit

Permalink
Update index in job table stub (#20702)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbaylis authored and taylorotwell committed Aug 23, 2017
1 parent 2d8b803 commit acd933f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Queue/Console/stubs/jobs.stub
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ class Create{{tableClassName}}Table extends Migration
{
Schema::create('{{table}}', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue');
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');

$table->index(['queue', 'reserved_at']);
});
}

Expand Down

1 comment on commit acd933f

@erlangparasu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sir, i get out of range error because the column type is integer
#25612

Please sign in to comment.