Merge pull request #17100 from uberbrady/add_deleted_at_index_to_action_logs

Fixed #16205 - Add an index to deleted_at for those with many deleted action_logs
This commit is contained in:
snipe
2025-06-04 11:48:45 +01:00
committed by GitHub
@@ -0,0 +1,28 @@
<?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('action_logs', function (Blueprint $table) {
$table->index('deleted_at');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('action_logs', function (Blueprint $table) {
$table->dropIndex('deleted_at');
});
}
};