the module is stored as key type in the json

This commit is contained in:
Trowbridge 2020-02-25 15:08:01 -05:00
parent d5e19bc309
commit df02a31000
5 changed files with 7 additions and 7 deletions

View File

@ -337,7 +337,7 @@ SELECT
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
basemix b
CROSS JOIN vscale s
@ -427,7 +427,7 @@ SELECT
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
volume b
CROSS JOIN pscale p

View File

@ -336,7 +336,7 @@ SELECT
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
basemix b
CROSS JOIN log

View File

@ -172,7 +172,7 @@ target AS (select target_increment incr)
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
basemix b
CROSS JOIN scale s

View File

@ -201,7 +201,7 @@ target AS (select incr_qty qincr)
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
basemix b
CROSS JOIN scale s

View File

@ -200,7 +200,7 @@ target AS (select target_vol vincr, target_prc pincr)
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
basemix b
CROSS JOIN vscale s
@ -281,7 +281,7 @@ FROM
,log.id
,COALESCE(log.doc->>'tag','') "tag"
,log.doc->>'message' "comment"
,log.doc->>'module' module
,log.doc->>'type' module
FROM
volume b
CROSS JOIN pscale s