From 092d9d1e42a94e495e8906dcd832ea2f1450f480 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Wed, 4 Jun 2025 11:23:09 +0100 Subject: [PATCH] Add deleted_at index to action_logs for people with many deleted action_logs --- ...36_add_deleted_at_index_to_action_logs.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2025_06_04_101736_add_deleted_at_index_to_action_logs.php 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.php new file mode 100644 index 0000000000..c9f853599b --- /dev/null +++ b/database/migrations/2025_06_04_101736_add_deleted_at_index_to_action_logs.php @@ -0,0 +1,28 @@ +index('deleted_at'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('action_logs', function (Blueprint $table) { + $table->dropIndex('deleted_at'); + }); + } +};