feat: add detected_runtime_type and detected_main_class to app_versions

Flyway V10 migration adds the two nullable columns. AppVersion record,
AppVersionRepository interface, and PostgresAppVersionRepository are
updated to carry and persist detected runtime information.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-12 13:01:24 +02:00
parent cbf29a5d87
commit f4bbc1f65f
4 changed files with 15 additions and 3 deletions

View File

@@ -4,4 +4,5 @@ import java.time.Instant;
import java.util.UUID;
public record AppVersion(UUID id, UUID appId, int version, String jarPath, String jarChecksum,
String jarFilename, Long jarSizeBytes, Instant uploadedAt) {}
String jarFilename, Long jarSizeBytes, String detectedRuntimeType,
String detectedMainClass, Instant uploadedAt) {}

View File

@@ -10,4 +10,5 @@ public interface AppVersionRepository {
int findMaxVersion(UUID appId);
UUID create(UUID appId, int version, String jarPath, String jarChecksum, String jarFilename, Long jarSizeBytes);
void delete(UUID id);
void updateDetectedRuntime(UUID id, String detectedRuntimeType, String detectedMainClass);
}