mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 09:12:56 +02:00
feat(server): visibility column (#17939)
* feat: private view * pr feedback * sql generation * feat: visibility column * fix: set visibility value as the same as the still part after unlinked live photos * fix: test * pr feedback
This commit is contained in:
parent
016d7a6ceb
commit
d33ce13561
90 changed files with 1137 additions and 867 deletions
server/src/queries
|
@ -7,8 +7,7 @@ from
|
|||
"assets"
|
||||
where
|
||||
"ownerId" = $2::uuid
|
||||
and "isVisible" = $3
|
||||
and "isArchived" = $4
|
||||
and "visibility" = $3
|
||||
and "deletedAt" is null
|
||||
and "fileCreatedAt" is not null
|
||||
and "fileModifiedAt" is not null
|
||||
|
@ -23,13 +22,12 @@ from
|
|||
left join "exif" on "assets"."id" = "exif"."assetId"
|
||||
where
|
||||
"ownerId" = $1::uuid
|
||||
and "isVisible" = $2
|
||||
and "isArchived" = $3
|
||||
and "visibility" = $2
|
||||
and "deletedAt" is null
|
||||
and "fileCreatedAt" is not null
|
||||
and "fileModifiedAt" is not null
|
||||
and "localDateTime" is not null
|
||||
and "originalPath" like $4
|
||||
and "originalPath" not like $5
|
||||
and "originalPath" like $3
|
||||
and "originalPath" not like $4
|
||||
order by
|
||||
regexp_replace("assets"."originalPath", $6, $7) asc
|
||||
regexp_replace("assets"."originalPath", $5, $6) asc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue