immich/server/src/queries/move.repository.sql
2024-03-20 23:15:09 -04:00

18 lines
470 B
SQL

-- NOTE: This file is auto generated by ./sql-generator
-- MoveRepository.getByEntity
SELECT
"MoveEntity"."id" AS "MoveEntity_id",
"MoveEntity"."entityId" AS "MoveEntity_entityId",
"MoveEntity"."pathType" AS "MoveEntity_pathType",
"MoveEntity"."oldPath" AS "MoveEntity_oldPath",
"MoveEntity"."newPath" AS "MoveEntity_newPath"
FROM
"move_history" "MoveEntity"
WHERE
(
("MoveEntity"."entityId" = $1)
AND ("MoveEntity"."pathType" = $2)
)
LIMIT
1