From bf9faa8864dda7fef50c2114c9883cfaaed5cee9 Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Wed, 22 Jan 2025 17:57:02 +0600 Subject: [PATCH] misc --- .../migrations/2024_12_30_152300_create_audit_logs_table.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/2024_12_30_152300_create_audit_logs_table.php b/database/migrations/2024_12_30_152300_create_audit_logs_table.php index 3ad245b..65d6a83 100644 --- a/database/migrations/2024_12_30_152300_create_audit_logs_table.php +++ b/database/migrations/2024_12_30_152300_create_audit_logs_table.php @@ -17,9 +17,11 @@ public function up(): void $table->ipAddress('ip_addr')->nullable(); $table->unsignedBigInteger('user_agent_id')->nullable(); $table->string('orthanc_uuid')->nullable(); - $table->text('url')->nullable(); + $table->string('url')->nullable(); $table->text('notes')->nullable(); $table->timestamp('created_at'); + + $table->index(['study_id', 'created_at']); }); }