legacymigrate: fix handling empty content hashes
This commit is contained in:
@@ -156,7 +156,7 @@ SELECT
|
|||||||
-- only: sqlite (line commented)
|
-- only: sqlite (line commented)
|
||||||
-- json_object
|
-- json_object
|
||||||
(
|
(
|
||||||
'content_hash', encode(content_hash, 'base64')
|
'content_hash', CASE WHEN content_hash IS NULL THEN '' ELSE encode(content_hash, 'base64') END
|
||||||
) -- metadata
|
) -- metadata
|
||||||
FROM message_old
|
FROM message_old
|
||||||
INNER JOIN portal_old ON mx_room=portal_old.mxid
|
INNER JOIN portal_old ON mx_room=portal_old.mxid
|
||||||
|
|||||||
Reference in New Issue
Block a user