mirror of
https://github.com/immich-app/immich.git
synced 2026-03-23 01:09:06 +03:00
@@ -10,20 +10,12 @@ where
|
||||
|
||||
-- IntegrityRepository.getIntegrityReportSummary
|
||||
select
|
||||
count(*) filter (
|
||||
where
|
||||
"type" = $1
|
||||
) as "checksum_mismatch",
|
||||
count(*) filter (
|
||||
where
|
||||
"type" = $2
|
||||
) as "missing_file",
|
||||
count(*) filter (
|
||||
where
|
||||
"type" = $3
|
||||
) as "untracked_file"
|
||||
"type",
|
||||
count(*) as "count"
|
||||
from
|
||||
"integrity_report"
|
||||
group by
|
||||
"type"
|
||||
|
||||
-- IntegrityRepository.getIntegrityReports
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user