From 2d85eefacef817d7bc582c457a057c6cdf1fcdb4 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 15 Dec 2023 13:24:01 +0000 Subject: [PATCH] Added indexes for reports Signed-off-by: snipe --- ..._indexes_to_new_activity_report_fields.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2023_12_15_024643_add_indexes_to_new_activity_report_fields.php diff --git a/database/migrations/2023_12_15_024643_add_indexes_to_new_activity_report_fields.php b/database/migrations/2023_12_15_024643_add_indexes_to_new_activity_report_fields.php new file mode 100644 index 0000000000..1410430592 --- /dev/null +++ b/database/migrations/2023_12_15_024643_add_indexes_to_new_activity_report_fields.php @@ -0,0 +1,34 @@ +index('action_type'); + $table->index('remote_ip'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('action_logs', function (Blueprint $table) { + $table->dropIndex(['action_type']); + $table->dropIndex(['remote_ip']); + }); + } +}