mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: update sql
This commit is contained in:
@@ -38,6 +38,10 @@ where
|
|||||||
"type" = $1
|
"type" = $1
|
||||||
order by
|
order by
|
||||||
"createdAt" desc
|
"createdAt" desc
|
||||||
|
limit
|
||||||
|
$2
|
||||||
|
offset
|
||||||
|
$3
|
||||||
|
|
||||||
-- IntegrityRepository.getAssetPathsByPaths
|
-- IntegrityRepository.getAssetPathsByPaths
|
||||||
select
|
select
|
||||||
@@ -66,18 +70,6 @@ from
|
|||||||
"asset"
|
"asset"
|
||||||
|
|
||||||
-- IntegrityRepository.streamAllAssetPaths
|
-- IntegrityRepository.streamAllAssetPaths
|
||||||
select
|
|
||||||
"id",
|
|
||||||
"type",
|
|
||||||
"path",
|
|
||||||
"assetId",
|
|
||||||
"fileAssetId"
|
|
||||||
from
|
|
||||||
"integrity_report"
|
|
||||||
where
|
|
||||||
"type" = $1
|
|
||||||
order by
|
|
||||||
"createdAt" desc
|
|
||||||
select
|
select
|
||||||
"originalPath",
|
"originalPath",
|
||||||
"encodedVideoPath"
|
"encodedVideoPath"
|
||||||
@@ -149,6 +141,20 @@ order by
|
|||||||
"createdAt" asc
|
"createdAt" asc
|
||||||
|
|
||||||
-- IntegrityRepository.streamIntegrityReports
|
-- IntegrityRepository.streamIntegrityReports
|
||||||
|
select
|
||||||
|
"id",
|
||||||
|
"type",
|
||||||
|
"path",
|
||||||
|
"assetId",
|
||||||
|
"fileAssetId"
|
||||||
|
from
|
||||||
|
"integrity_report"
|
||||||
|
where
|
||||||
|
"type" = $1
|
||||||
|
order by
|
||||||
|
"createdAt" desc
|
||||||
|
|
||||||
|
-- IntegrityRepository.streamIntegrityReportsWithAssetChecksum
|
||||||
select
|
select
|
||||||
"integrity_report"."id" as "reportId",
|
"integrity_report"."id" as "reportId",
|
||||||
"integrity_report"."path"
|
"integrity_report"."path"
|
||||||
|
|||||||
Reference in New Issue
Block a user