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 000000000..141043059 --- /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']); + }); + } +}