mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
refactor: infra folder (#8138)
This commit is contained in:
18
server/src/queries/move.repository.sql
Normal file
18
server/src/queries/move.repository.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user