fix:트리거 감사로그 created_at 단독 인덱스 추가

- ORDER BY created_at DESC 쿼리 성능 개선
- 기존 복합 인덱스만으로는 단독 정렬에 활용 불가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 13:34:37 +09:00
parent 59cd8cf4fe
commit 1f848ad291

View File

@@ -0,0 +1,20 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
public function up(): void
{
DB::statement("
CREATE INDEX ix_trig_created_at
ON trigger_audit_logs (created_at)
");
}
public function down(): void
{
DB::statement('DROP INDEX ix_trig_created_at ON trigger_audit_logs');
}
};