From b1a1a2b83701cc3138bcb8a522dff45ff4740f8f Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Thu, 19 Mar 2020 22:43:18 +0100 Subject: [PATCH] Add archives to collective insights --- .../src/main/scala/docspell/store/queries/QCollective.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/store/src/main/scala/docspell/store/queries/QCollective.scala b/modules/store/src/main/scala/docspell/store/queries/QCollective.scala index 2bbb1b94..1e811660 100644 --- a/modules/store/src/main/scala/docspell/store/queries/QCollective.scala +++ b/modules/store/src/main/scala/docspell/store/queries/QCollective.scala @@ -39,6 +39,9 @@ object QCollective { union distinct 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) + 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 val q3 = fr"SELECT" ++ commas(