From df02a31000d3dd058f80d3eb5adb55ad0c480b14 Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Tue, 25 Feb 2020 15:08:01 -0500 Subject: [PATCH] the module is stored as key type in the json --- route_sql/addmonth_vupd.sql | 4 ++-- route_sql/new_basket.sql | 2 +- route_sql/scale_pd.sql | 2 +- route_sql/scale_vd.sql | 2 +- route_sql/scale_vupd.sql | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/route_sql/addmonth_vupd.sql b/route_sql/addmonth_vupd.sql index eb213eb..0bd57c5 100644 --- a/route_sql/addmonth_vupd.sql +++ b/route_sql/addmonth_vupd.sql @@ -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 diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 32abe7e..192c773 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -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 diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index 99dd156..4b29f15 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -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 diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index e2760b5..03029bc 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -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 diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index 1923b48..b25755f 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -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