Add archives to collective insights

This commit is contained in:
Eike Kettner 2020-03-19 22:43:18 +01:00
parent d78bd4142c
commit b1a1a2b837

View File

@ -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(