mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: selected columns in queries (#17589)
This commit is contained in:
parent
5a51ad3622
commit
0b69d1c147
9 changed files with 50 additions and 144 deletions
|
|
@ -110,7 +110,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"
|
||||
|
|
@ -194,7 +199,9 @@ select
|
|||
from
|
||||
(
|
||||
select
|
||||
"asset_files".*
|
||||
"asset_files"."id",
|
||||
"asset_files"."path",
|
||||
"asset_files"."type"
|
||||
from
|
||||
"asset_files"
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue