change comment to be the tag

This commit is contained in:
Trowbridge 2020-02-18 14:47:46 -05:00
parent 83039b4a51
commit d3a4a45d53
8 changed files with 23 additions and 23 deletions

View File

@ -332,7 +332,7 @@ SELECT
,'replace_version' "version"
,'replace_source'||' volume' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
basemix b
@ -420,7 +420,7 @@ SELECT
,'replace_version' "version"
,'replace_source'||' volume' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
volume b
@ -466,7 +466,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
--------values-------------------------
,sum(value_loc) value_loc
@ -509,7 +509,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
)
SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -101,7 +101,7 @@ SELECT
,version
,iter
,null::int logid
,''::text "comment"
,''::text tag
,''::text module
FROM
rlarp.osmf_dev o

View File

@ -38,7 +38,7 @@ SELECT
,version
,iter
,logid
,comment
,tag
,module
FROM
rlarp.osm_pool
@ -77,7 +77,7 @@ GROUP BY
,version
,iter
,logid
,comment
,tag
,module
)
SELECT

View File

@ -4,7 +4,7 @@ SELECT
l.doc->>'user' "user",
jsonb_path_query_first(l.doc,'$.scenario.quota_rep_descr')->>0 quota_rep_descr,
to_char((l.doc->>'stamp')::timestamptz,'YYYY-MM-DD HH:MI:SS') "stamp",
l.doc->>'message' "comment",
l.doc->>'tag' "tag",
jsonb_pretty(l.doc) def,
l.id
FROM
@ -17,7 +17,7 @@ SELECT
list.user
,list.quota_rep_descr
,list.stamp
,list.comment
,list.tag
,list.def
,list.id
,to_char(round(sum(value_usd),2),'$999,999,999D00') sales
@ -29,7 +29,7 @@ group BY
list.user
,list.quota_rep_descr
,list.stamp
,list.comment
,list.tag
,list.def
,list.id
)

View File

@ -332,7 +332,7 @@ SELECT
,'replace_version' "version"
,'replace_source'||' volume' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
basemix b
@ -453,7 +453,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
--------values-------------------------
,sum(value_loc) value_loc
@ -496,7 +496,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
)
SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -167,7 +167,7 @@ target AS (select target_increment incr)
,'replace_version' "version"
,'replace_source'||' price' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
basemix b
@ -214,7 +214,7 @@ target AS (select target_increment incr)
,version
,iter
,logid
,comment
,tag
,module
--------values-------------------------
,sum(value_loc) value_loc
@ -257,7 +257,7 @@ target AS (select target_increment incr)
,version
,iter
,logid
,comment
,tag
,module
)
SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -196,7 +196,7 @@ target AS (select incr_qty qincr)
,'replace_version' "version"
,'replace_source'||' volume' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
basemix b
@ -241,7 +241,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
--------values-------------------------
,sum(value_loc) value_loc
@ -284,7 +284,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
)
SELECT json_agg(row_to_json(insagg)) x from insagg

View File

@ -195,7 +195,7 @@ target AS (select target_vol vincr, target_prc pincr)
,'replace_version' "version"
,'replace_source'||' volume' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
basemix b
@ -274,7 +274,7 @@ FROM
,'replace_version' "version"
,'replace_source'||' price' iter
,log.id
,COALESCE(log.doc->>'message','') "comment"
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'type' module
FROM
volume b
@ -321,7 +321,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
--------values-------------------------
,sum(value_loc) value_loc
@ -364,7 +364,7 @@ FROM
,version
,iter
,logid
,comment
,tag
,module
)
SELECT json_agg(row_to_json(insagg)) x from insagg