mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
chore(server): sql versioning (#5346)
* chore(server): sql versioning * chore: always add newline to end of file * refactor: generator * chore: pr feedback * chore: pr feedback
This commit is contained in:
parent
ffecfbe075
commit
5e55a17b2a
34 changed files with 3012 additions and 9 deletions
18
server/src/infra/sql/move.repository.sql
Normal file
18
server/src/infra/sql/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue