feat: asset copy (#23172)

This commit is contained in:
Daniel Dietzler 2025-10-29 14:43:47 +01:00 committed by GitHub
parent fdfb04d83c
commit 4ae7cadeae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 644 additions and 2 deletions

View file

@ -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

View 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

View file

@ -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