A free open source IT asset/license management system
Add deleted_at index to action_logs for people with many deleted action_logs
Brady Wetherington092d9d1e42a9
diff --git a/database/migrations/2025_06_04_101736_add_deleted_at_index_to_action_logs.php b/database/migrations/2025_06_04_101736_add_deleted_at_index_to_action_logs.phpnew file mode 100644index 0000000000..c9f853599b--- /dev/null+++ b/database/migrations/2025_06_04_101736_add_deleted_at_index_to_action_logs.php@@ -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');+ });+ }+};