mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
feat: asset metadata (#20446)
This commit is contained in:
@@ -19,6 +19,33 @@ returning
|
||||
"dateTimeOriginal",
|
||||
"timeZone"
|
||||
|
||||
-- AssetRepository.getMetadata
|
||||
select
|
||||
"key",
|
||||
"value",
|
||||
"updatedAt"
|
||||
from
|
||||
"asset_metadata"
|
||||
where
|
||||
"assetId" = $1
|
||||
|
||||
-- AssetRepository.getMetadataByKey
|
||||
select
|
||||
"key",
|
||||
"value",
|
||||
"updatedAt"
|
||||
from
|
||||
"asset_metadata"
|
||||
where
|
||||
"assetId" = $1
|
||||
and "key" = $2
|
||||
|
||||
-- AssetRepository.deleteMetadataByKey
|
||||
delete from "asset_metadata"
|
||||
where
|
||||
"assetId" = $1
|
||||
and "key" = $2
|
||||
|
||||
-- AssetRepository.getByDayOfYear
|
||||
with
|
||||
"res" as (
|
||||
|
||||
Reference in New Issue
Block a user