init push
This commit is contained in:
13
migrations/20260421_file_thumbnail_metadata_null_cleanup.sql
Normal file
13
migrations/20260421_file_thumbnail_metadata_null_cleanup.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
UPDATE file_files
|
||||
SET
|
||||
thumbnail_mime_type = NULLIF(TRIM(thumbnail_mime_type), ''),
|
||||
thumbnail_bucket = NULLIF(TRIM(thumbnail_bucket), ''),
|
||||
thumbnail_object_key = NULLIF(TRIM(thumbnail_object_key), ''),
|
||||
thumbnail_object_version = NULLIF(TRIM(thumbnail_object_version), ''),
|
||||
thumbnail_etag = NULLIF(TRIM(thumbnail_etag), '')
|
||||
WHERE
|
||||
COALESCE(TRIM(thumbnail_mime_type), '') = ''
|
||||
OR COALESCE(TRIM(thumbnail_bucket), '') = ''
|
||||
OR COALESCE(TRIM(thumbnail_object_key), '') = ''
|
||||
OR COALESCE(TRIM(thumbnail_object_version), '') = ''
|
||||
OR COALESCE(TRIM(thumbnail_etag), '') = '';
|
||||
Reference in New Issue
Block a user