add more index to hit and runs table

This commit is contained in:
xiaomlove
2026-01-14 11:37:36 +07:00
parent b2f21010dc
commit 0a568c0d19

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('hit_and_runs', function (Blueprint $table) {
$table->index('status');
$table->index('created_at');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('hit_and_runs', function (Blueprint $table) {
//
});
}
};