logger->info('[core:7.0.7] 테이블 부재 — 잔존 색인 정리 스킵: '.$table); return; } $existing = array_column(Schema::getIndexes($table), 'name'); $newIndex = 'idx_activity_logs_created_id'; $oldIndex = DB::getTablePrefix().'activity_logs_created_at_index'; // 새 색인이 없으면 교체 자체가 미완이다 — 구 색인이 유일한 정렬 색인일 수 // 있으므로 지우지 않는다(7.0.6 스텝이 담당할 상태). if (! in_array($newIndex, $existing, true)) { $context->logger->info("[core:7.0.7] 새 색인 부재 — 잔존 색인 정리 스킵: {$newIndex}"); return; } if (! in_array($oldIndex, $existing, true)) { $context->logger->info('[core:7.0.7] 잔존 구 색인 없음 — 정리 불필요: '.$table); return; } Schema::table($table, function ($blueprint) use ($oldIndex) { $blueprint->dropIndex($oldIndex); }); $context->logger->info("[core:7.0.7] 7.0.6 교체가 남긴 구 색인 제거: {$oldIndex}"); } }