From 49326e559ba9e781dab3b16d958b17376c092666 Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Thu, 9 Oct 2025 13:58:24 +0200 Subject: [PATCH] Fix file evidence migration Signed-off-by: Sacha Al Himdani --- pkg/coredata/migrations/20251003T132724Z.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/coredata/migrations/20251003T132724Z.sql b/pkg/coredata/migrations/20251003T132724Z.sql index de9a3ffe2..dca65822c 100644 --- a/pkg/coredata/migrations/20251003T132724Z.sql +++ b/pkg/coredata/migrations/20251003T132724Z.sql @@ -16,6 +16,7 @@ WITH e.created_at, e.updated_at FROM evidences e + WHERE e.object_key IS NOT NULL AND e.object_key != '' ), inserted_files AS ( INSERT INTO files (id, tenant_id, bucket_name, mime_type, file_name, file_key, file_size, created_at, updated_at)