mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: automatic media location migration without internal assets (#20489)
This commit is contained in:
parent
c3263e50fc
commit
3cdc6844a1
4 changed files with 8 additions and 44 deletions
|
|
@ -170,27 +170,10 @@ where
|
|||
|
||||
-- AssetRepository.getFileSamples
|
||||
select
|
||||
"asset"."id",
|
||||
"asset"."originalPath",
|
||||
"asset"."sidecarPath",
|
||||
"asset"."encodedVideoPath",
|
||||
(
|
||||
select
|
||||
coalesce(json_agg(agg), '[]')
|
||||
from
|
||||
(
|
||||
select
|
||||
"path"
|
||||
from
|
||||
"asset_file"
|
||||
where
|
||||
"asset"."id" = "asset_file"."assetId"
|
||||
) as agg
|
||||
) as "files"
|
||||
"assetId",
|
||||
"path"
|
||||
from
|
||||
"asset"
|
||||
where
|
||||
"asset"."libraryId" is null
|
||||
"asset_file"
|
||||
limit
|
||||
3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue