0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00
immich/server/src/queries/move.repository.sql
Alex a35af2b242
refactor: migrate move repository to kysely (#15327)
* refactor: migrate move repository to kysely

* fix: tests

* fix: tests
2025-01-13 23:22:03 -05:00

17 lines
251 B
SQL

-- NOTE: This file is auto generated by ./sql-generator
-- MoveRepository.getByEntity
select
*
from
"move_history"
where
"entityId" = $1
and "pathType" = $2
-- MoveRepository.delete
delete from "move_history"
where
"id" = $1
returning
*