update index
This commit is contained in:
@@ -13,12 +13,14 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
Schema::create('jobs', function (Blueprint $table) {
|
Schema::create('jobs', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('queue')->index();
|
$table->string('queue');
|
||||||
$table->longText('payload');
|
$table->longText('payload');
|
||||||
$table->unsignedTinyInteger('attempts');
|
$table->unsignedTinyInteger('attempts');
|
||||||
$table->unsignedInteger('reserved_at')->nullable();
|
$table->unsignedInteger('reserved_at')->nullable();
|
||||||
$table->unsignedInteger('available_at');
|
$table->unsignedInteger('available_at');
|
||||||
$table->unsignedInteger('created_at');
|
$table->unsignedInteger('created_at');
|
||||||
|
|
||||||
|
$table->index(['queue', 'reserved_at', 'available_at']);
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('job_batches', function (Blueprint $table) {
|
Schema::create('job_batches', function (Blueprint $table) {
|
||||||
|
|||||||
Reference in New Issue
Block a user