mirror of
https://github.com/immich-app/immich.git
synced 2026-03-03 00:47:02 +00:00
* 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
35 lines
539 B
SQL
35 lines
539 B
SQL
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
-- AssetEditRepository.replaceAll
|
|
begin
|
|
delete from "asset_edit"
|
|
where
|
|
"assetId" = $1
|
|
rollback
|
|
|
|
-- AssetEditRepository.getAll
|
|
select
|
|
"id",
|
|
"action",
|
|
"parameters"
|
|
from
|
|
"asset_edit"
|
|
where
|
|
"assetId" = $1
|
|
order by
|
|
"sequence" asc
|
|
|
|
-- AssetEditRepository.getWithSyncInfo
|
|
select
|
|
"asset_edit"."id",
|
|
"asset_edit"."assetId",
|
|
"asset_edit"."sequence",
|
|
"asset_edit"."action",
|
|
"asset_edit"."parameters"
|
|
from
|
|
"asset_edit"
|
|
where
|
|
"assetId" = $1
|
|
order by
|
|
"sequence" asc
|