mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
parent
5dac315af7
commit
a373034629
11 changed files with 153 additions and 63 deletions
|
|
@ -15,7 +15,35 @@ select
|
|||
"assets"
|
||||
inner join lateral (
|
||||
select
|
||||
"exif".*
|
||||
"exif"."assetId",
|
||||
"exif"."autoStackId",
|
||||
"exif"."bitsPerSample",
|
||||
"exif"."city",
|
||||
"exif"."colorspace",
|
||||
"exif"."country",
|
||||
"exif"."dateTimeOriginal",
|
||||
"exif"."description",
|
||||
"exif"."exifImageHeight",
|
||||
"exif"."exifImageWidth",
|
||||
"exif"."exposureTime",
|
||||
"exif"."fileSizeInByte",
|
||||
"exif"."fNumber",
|
||||
"exif"."focalLength",
|
||||
"exif"."fps",
|
||||
"exif"."iso",
|
||||
"exif"."latitude",
|
||||
"exif"."lensModel",
|
||||
"exif"."livePhotoCID",
|
||||
"exif"."longitude",
|
||||
"exif"."make",
|
||||
"exif"."model",
|
||||
"exif"."modifyDate",
|
||||
"exif"."orientation",
|
||||
"exif"."profileDescription",
|
||||
"exif"."projectionType",
|
||||
"exif"."rating",
|
||||
"exif"."state",
|
||||
"exif"."timeZone"
|
||||
from
|
||||
"exif"
|
||||
where
|
||||
|
|
@ -52,7 +80,12 @@ select
|
|||
from
|
||||
(
|
||||
select
|
||||
"tags".*
|
||||
"tags"."id",
|
||||
"tags"."value",
|
||||
"tags"."createdAt",
|
||||
"tags"."updatedAt",
|
||||
"tags"."color",
|
||||
"tags"."parentId"
|
||||
from
|
||||
"tags"
|
||||
inner join "tag_asset" on "tags"."id" = "tag_asset"."tagsId"
|
||||
|
|
@ -65,7 +98,35 @@ select
|
|||
"assets"
|
||||
inner join lateral (
|
||||
select
|
||||
"exif".*
|
||||
"exif"."assetId",
|
||||
"exif"."autoStackId",
|
||||
"exif"."bitsPerSample",
|
||||
"exif"."city",
|
||||
"exif"."colorspace",
|
||||
"exif"."country",
|
||||
"exif"."dateTimeOriginal",
|
||||
"exif"."description",
|
||||
"exif"."exifImageHeight",
|
||||
"exif"."exifImageWidth",
|
||||
"exif"."exposureTime",
|
||||
"exif"."fileSizeInByte",
|
||||
"exif"."fNumber",
|
||||
"exif"."focalLength",
|
||||
"exif"."fps",
|
||||
"exif"."iso",
|
||||
"exif"."latitude",
|
||||
"exif"."lensModel",
|
||||
"exif"."livePhotoCID",
|
||||
"exif"."longitude",
|
||||
"exif"."make",
|
||||
"exif"."model",
|
||||
"exif"."modifyDate",
|
||||
"exif"."orientation",
|
||||
"exif"."profileDescription",
|
||||
"exif"."projectionType",
|
||||
"exif"."rating",
|
||||
"exif"."state",
|
||||
"exif"."timeZone"
|
||||
from
|
||||
"exif"
|
||||
where
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
-- TagRepository.get
|
||||
select
|
||||
"id",
|
||||
"value",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"color",
|
||||
"parentId"
|
||||
"tags"."id",
|
||||
"tags"."value",
|
||||
"tags"."createdAt",
|
||||
"tags"."updatedAt",
|
||||
"tags"."color",
|
||||
"tags"."parentId"
|
||||
from
|
||||
"tags"
|
||||
where
|
||||
|
|
@ -15,12 +15,12 @@ where
|
|||
|
||||
-- TagRepository.getByValue
|
||||
select
|
||||
"id",
|
||||
"value",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"color",
|
||||
"parentId"
|
||||
"tags"."id",
|
||||
"tags"."value",
|
||||
"tags"."createdAt",
|
||||
"tags"."updatedAt",
|
||||
"tags"."color",
|
||||
"tags"."parentId"
|
||||
from
|
||||
"tags"
|
||||
where
|
||||
|
|
@ -42,12 +42,12 @@ rollback
|
|||
|
||||
-- TagRepository.getAll
|
||||
select
|
||||
"id",
|
||||
"value",
|
||||
"createdAt",
|
||||
"updatedAt",
|
||||
"color",
|
||||
"parentId"
|
||||
"tags"."id",
|
||||
"tags"."value",
|
||||
"tags"."createdAt",
|
||||
"tags"."updatedAt",
|
||||
"tags"."color",
|
||||
"tags"."parentId"
|
||||
from
|
||||
"tags"
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue