mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Add archives to collective insights
This commit is contained in:
parent
d78bd4142c
commit
b1a1a2b837
@ -39,6 +39,9 @@ object QCollective {
|
|||||||
union distinct
|
union distinct
|
||||||
select a.file_id,m.length from attachment_source a
|
select a.file_id,m.length from attachment_source a
|
||||||
inner join filemeta m on m.id = a.file_id where a.id in (select aid from attachs)
|
inner join filemeta m on m.id = a.file_id where a.id in (select aid from attachs)
|
||||||
|
union distinct
|
||||||
|
select a.file_id,m.length from attachment_archive a
|
||||||
|
inner join filemeta m on m.id = a.file_id where a.id in (select aid from attachs)
|
||||||
) as t""".query[Option[Long]].unique
|
) as t""".query[Option[Long]].unique
|
||||||
|
|
||||||
val q3 = fr"SELECT" ++ commas(
|
val q3 = fr"SELECT" ++ commas(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user