Skip to content

Commit

Permalink
🗃️ add index for name, status and queue on queue_monitor (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu authored May 22, 2024
1 parent 5dad3c1 commit eca479b
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

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

return new class extends Migration
{

public function up(): void {
Schema::table('queue_monitor', static function(Blueprint $table) {
$table->index(['name', 'status', 'queue']);
});
}

public function down(): void {
Schema::table('queue_monitor', static function(Blueprint $table) {
$table->dropIndex(['name', 'status', 'queue']);
});
}
};

0 comments on commit eca479b

Please sign in to comment.