8000 Update index in job table stub (#20702) · laravel/framework@acd933f · GitHub
[go: up one dir, main page]

Skip to content

Commit acd933f

Browse files
danielbaylistaylorotwell
authored andcommitted
Update index in job table stub (#20702)
1 parent 2d8b803 commit acd933f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Queue/Console/stubs/jobs.stub

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ class Create{{tableClassName}}Table extends Migration
1515
{
1616
Schema::create('{{table}}', function (Blueprint $table) {
1717
$table->bigIncrements('id');
18-
$table->string('queue');
18+
$table->string('queue')->index();
1919
$table->longText('payload');
2020
$table->unsignedTinyInteger('attempts');
2121
$table->unsignedInteger('reserved_at')->nullable();
2222
$table->unsignedInteger('available_at');
2323
$table->unsignedInteger('created_at');
24-
25-
$table->index(['queue', 'reserved_at']);
2624
});
2725
}
2826

0 commit comments

Comments
 (0)
0