routes that make adjustments need to return comment info

This commit is contained in:
Paul Trowbridge 2020-02-14 15:52:16 -05:00
parent 33041761c6
commit db13f3d38c
4 changed files with 24 additions and 0 deletions

View File

@ -452,6 +452,9 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
--------values------------------------- --------values-------------------------
,sum(value_loc) value_loc ,sum(value_loc) value_loc
,sum(value_usd) value_usd ,sum(value_usd) value_usd
@ -492,5 +495,8 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
) )
SELECT json_agg(row_to_json(insagg)) x from insagg SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -213,6 +213,9 @@ target AS (select target_increment incr)
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
--------values------------------------- --------values-------------------------
,sum(value_loc) value_loc ,sum(value_loc) value_loc
,sum(value_usd) value_usd ,sum(value_usd) value_usd
@ -253,5 +256,8 @@ target AS (select target_increment incr)
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
) )
SELECT json_agg(row_to_json(insagg)) x from insagg SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -240,6 +240,9 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
--------values------------------------- --------values-------------------------
,sum(value_loc) value_loc ,sum(value_loc) value_loc
,sum(value_usd) value_usd ,sum(value_usd) value_usd
@ -280,5 +283,8 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
) )
SELECT json_agg(row_to_json(insagg)) x from insagg SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -320,6 +320,9 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
--------values------------------------- --------values-------------------------
,sum(value_loc) value_loc ,sum(value_loc) value_loc
,sum(value_usd) value_usd ,sum(value_usd) value_usd
@ -360,5 +363,8 @@ FROM
,promo ,promo
,version ,version
,iter ,iter
,logid
,comment
,module
) )
SELECT json_agg(row_to_json(insagg)) x from insagg SELECT json_agg(row_to_json(insagg)) x from insagg