Fix file evidence migration
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -16,6 +16,7 @@ WITH
|
|||||||
e.created_at,
|
e.created_at,
|
||||||
e.updated_at
|
e.updated_at
|
||||||
FROM evidences e
|
FROM evidences e
|
||||||
|
WHERE e.object_key IS NOT NULL AND e.object_key != ''
|
||||||
),
|
),
|
||||||
inserted_files AS (
|
inserted_files AS (
|
||||||
INSERT INTO files (id, tenant_id, bucket_name, mime_type, file_name, file_key, file_size, created_at, updated_at)
|
INSERT INTO files (id, tenant_id, bucket_name, mime_type, file_name, file_key, file_size, created_at, updated_at)
|
||||||
|
|||||||
Reference in New Issue
Block a user