mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: asset copy (#23172)
This commit is contained in:
parent
fdfb04d83c
commit
4ae7cadeae
20 changed files with 644 additions and 2 deletions
|
|
@ -422,3 +422,15 @@ group by
|
|||
"asset"."ownerId"
|
||||
order by
|
||||
"assetCount" desc
|
||||
|
||||
-- AlbumRepository.copyAlbums
|
||||
insert into
|
||||
"album_asset"
|
||||
select
|
||||
"album_asset"."albumsId",
|
||||
$1 as "assetsId"
|
||||
from
|
||||
"album_asset"
|
||||
where
|
||||
"album_asset"."assetsId" = $2
|
||||
on conflict do nothing
|
||||
|
|
|
|||
13
server/src/queries/shared.link.asset.repository.sql
Normal file
13
server/src/queries/shared.link.asset.repository.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- NOTE: This file is auto generated by ./sql-generator
|
||||
|
||||
-- SharedLinkAssetRepository.copySharedLinks
|
||||
insert into
|
||||
"shared_link_asset"
|
||||
select
|
||||
$1 as "assetsId",
|
||||
"shared_link_asset"."sharedLinksId"
|
||||
from
|
||||
"shared_link_asset"
|
||||
where
|
||||
"shared_link_asset"."assetsId" = $2
|
||||
on conflict do nothing
|
||||
|
|
@ -153,3 +153,10 @@ from
|
|||
left join "stack" on "stack"."id" = "asset"."stackId"
|
||||
where
|
||||
"asset"."id" = $1
|
||||
|
||||
-- StackRepository.merge
|
||||
update "asset"
|
||||
set
|
||||
"stackId" = $1
|
||||
where
|
||||
"asset"."stackId" = $2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue