mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 04:17:56 +03:00
feat: asset metadata (#20446)
This commit is contained in:
@@ -539,6 +539,37 @@ where
|
||||
order by
|
||||
"asset_face"."updateId" asc
|
||||
|
||||
-- SyncRepository.assetMetadata.getDeletes
|
||||
select
|
||||
"asset_metadata_audit"."id",
|
||||
"assetId",
|
||||
"key"
|
||||
from
|
||||
"asset_metadata_audit" as "asset_metadata_audit"
|
||||
left join "asset" on "asset"."id" = "asset_metadata_audit"."assetId"
|
||||
where
|
||||
"asset_metadata_audit"."id" < $1
|
||||
and "asset_metadata_audit"."id" > $2
|
||||
and "asset"."ownerId" = $3
|
||||
order by
|
||||
"asset_metadata_audit"."id" asc
|
||||
|
||||
-- SyncRepository.assetMetadata.getUpserts
|
||||
select
|
||||
"assetId",
|
||||
"key",
|
||||
"value",
|
||||
"asset_metadata"."updateId"
|
||||
from
|
||||
"asset_metadata" as "asset_metadata"
|
||||
inner join "asset" on "asset"."id" = "asset_metadata"."assetId"
|
||||
where
|
||||
"asset_metadata"."updateId" < $1
|
||||
and "asset_metadata"."updateId" > $2
|
||||
and "asset"."ownerId" = $3
|
||||
order by
|
||||
"asset_metadata"."updateId" asc
|
||||
|
||||
-- SyncRepository.authUser.getUpserts
|
||||
select
|
||||
"id",
|
||||
|
||||
Reference in New Issue
Block a user