mirror of
https://github.com/immich-app/immich.git
synced 2026-05-21 15:16:31 -04:00
feat(server): SyncAssetEditV1 (#26446)
* feat: SyncAssetEditV1 * fix: audit table import * fix: sql tools table fetch * fix: medium tests (wip) * fix: circ dependency * chore: finalize tests * chore: codegen/lint * fix: code review
This commit is contained in:
@@ -514,6 +514,38 @@ where
|
||||
order by
|
||||
"asset_exif"."updateId" asc
|
||||
|
||||
-- SyncRepository.assetEdit.getDeletes
|
||||
select
|
||||
"asset_edit_audit"."id",
|
||||
"editId"
|
||||
from
|
||||
"asset_edit_audit" as "asset_edit_audit"
|
||||
inner join "asset" on "asset"."id" = "asset_edit_audit"."assetId"
|
||||
where
|
||||
"asset_edit_audit"."id" < $1
|
||||
and "asset_edit_audit"."id" > $2
|
||||
and "asset"."ownerId" = $3
|
||||
order by
|
||||
"asset_edit_audit"."id" asc
|
||||
|
||||
-- SyncRepository.assetEdit.getUpserts
|
||||
select
|
||||
"asset_edit"."id",
|
||||
"asset_edit"."assetId",
|
||||
"asset_edit"."sequence",
|
||||
"asset_edit"."action",
|
||||
"asset_edit"."parameters",
|
||||
"asset_edit"."updateId"
|
||||
from
|
||||
"asset_edit" as "asset_edit"
|
||||
inner join "asset" on "asset"."id" = "asset_edit"."assetId"
|
||||
where
|
||||
"asset_edit"."updateId" < $1
|
||||
and "asset_edit"."updateId" > $2
|
||||
and "asset"."ownerId" = $3
|
||||
order by
|
||||
"asset_edit"."updateId" asc
|
||||
|
||||
-- SyncRepository.assetFace.getDeletes
|
||||
select
|
||||
"asset_face_audit"."id",
|
||||
|
||||
Reference in New Issue
Block a user