Fix file evidence migration

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-10-09 13:58:24 +02:00
parent c626c7d2dc
commit 49326e559b

View File

@@ -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)