mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: duplicate delete groups api (#19142)
This commit is contained in:
parent
bddb43e1d4
commit
c9bcae813b
10 changed files with 235 additions and 13 deletions
|
|
@ -60,6 +60,22 @@ where
|
|||
"unique"."duplicateId" = "duplicates"."duplicateId"
|
||||
)
|
||||
|
||||
-- DuplicateRepository.delete
|
||||
update "assets"
|
||||
set
|
||||
"duplicateId" = $1
|
||||
where
|
||||
"ownerId" = $2
|
||||
and "duplicateId" = $3
|
||||
|
||||
-- DuplicateRepository.deleteAll
|
||||
update "assets"
|
||||
set
|
||||
"duplicateId" = $1
|
||||
where
|
||||
"ownerId" = $2
|
||||
and "duplicateId" in ($3)
|
||||
|
||||
-- DuplicateRepository.search
|
||||
begin
|
||||
set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue