[Collab-qa-commits] r1923 - udd/sql

Lucas Nussbaum lucas at alioth.debian.org
Sat Mar 26 07:07:11 UTC 2011


Author: lucas
Date: 2011-03-26 07:07:08 +0000 (Sat, 26 Mar 2011)
New Revision: 1923

Modified:
   udd/sql/setup.sql
Log:
bapase improvements

Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql	2011-03-26 07:06:11 UTC (rev 1922)
+++ udd/sql/setup.sql	2011-03-26 07:07:08 UTC (rev 1923)
@@ -711,7 +711,8 @@
 first_seen, (current_date - first_seen) as first_seen_age,
 uh.date as upload_date, (current_date - uh.date::date) as upload_age,
 nmu, coalesce(nmus, 0) as nmus, coalesce(rc_bugs,0) as rc_bugs, coalesce(all_bugs,0) as all_bugs,
-coalesce(insts,0) as insts, coalesce(vote,0) as vote
+coalesce(insts,0) as insts, coalesce(vote,0) as vote, s.maintainer, bugs.last_modified, 
+(current_date - bugs.last_modified::date) as last_modified_age
 from sources_uniq s
 left join orphaned_packages op on s.source = op.source
 left join migrations tm on s.source = tm.source
@@ -719,6 +720,7 @@
 left join  upload_history_nmus uhn on s.source = uhn.source
 left join bugs_count b on s.source = b.source
 left join popcon_src ps on s.source = ps.source
+left join bugs on op.bug = bugs.id
 where s.distribution='debian' and s.release='sid';
 GRANT SELECT ON bapase TO PUBLIC;
 




More information about the Collab-qa-commits mailing list