re-add migration and fix upload from main timeline

This commit is contained in:
shenlong-tanwen
2025-09-05 01:53:20 +05:30
parent e2c87c2042
commit b11ea52704
9 changed files with 7273 additions and 5 deletions
@@ -22,7 +22,8 @@ SELECT
rae.owner_id,
rae.live_photo_video_id,
0 as orientation,
rae.stack_id
rae.stack_id,
rae.cloud_id
FROM
remote_asset_entity rae
LEFT JOIN
@@ -54,7 +55,8 @@ SELECT
NULL as owner_id,
NULL as live_photo_video_id,
lae.orientation,
NULL as stack_id
NULL as stack_id,
lae.cloud_id
FROM
local_asset_entity lae
WHERE NOT EXISTS (