From 29830a2a8876da432c3683f5b10548821bd83f95 Mon Sep 17 00:00:00 2001 From: Daniel Marin Date: Thu, 16 Jan 2025 12:28:39 +0100 Subject: [PATCH] fix(dml_issue_30): minor bug on writting cat_node column --- updates/40/40000/utils/dml_issue_30.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updates/40/40000/utils/dml_issue_30.sql b/updates/40/40000/utils/dml_issue_30.sql index 141c16efa..1f1e9c9c4 100644 --- a/updates/40/40000/utils/dml_issue_30.sql +++ b/updates/40/40000/utils/dml_issue_30.sql @@ -54,7 +54,7 @@ UPDATE sys_fprocess SET fprocess_name='Null values on closed/broken values for v WHERE n.state = 1 AND (broken IS NULL OR closed IS NULL)', info_msg='There are not operative valves with null values on closed/broken fields.', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=176; UPDATE sys_fprocess SET fprocess_name='inlet_x_exploitation with null/wrong values', "source"='core', fprocess_type='Check graph-data', project_type='ws', except_level=3, except_msg='rows with exploitation bad configured on the config_graph_mincut table. Please check your data before continue.', query_text='SELECT * FROM config_graph_mincut cgi INNER JOIN node n ON cgi.node_id = n.node_id WHERE n.expl_id NOT IN (SELECT expl_id FROM exploitation WHERE active IS TRUE)', info_msg='It seems config_graph_mincut table is well configured. At least, table is filled with nodes from all exploitations. All tanks are defined in config_graph_mincut.', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=177; -UPDATE sys_fprocess SET fprocess_name='dma-nodeparent acording with graphdelimiter', "source"='core', fprocess_type='Check graph-config', project_type='ws', except_level=2, except_msg='nodes with cat_feature_node.graph_delimiter=''DMA'' not configured on the dma table.', query_text='SELECT node_id, nodecat_id, the_geom, a.active, t_node.expl_id FROM t_node JOIN cat_node c ON id=nodecat_id JOIN cat_feature_node n ON n.id=c.nodetype_id +UPDATE sys_fprocess SET fprocess_name='dma-nodeparent acording with graphdelimiter', "source"='core', fprocess_type='Check graph-config', project_type='ws', except_level=2, except_msg='nodes with cat_feature_node.graph_delimiter=''DMA'' not configured on the dma table.', query_text='SELECT node_id, nodecat_id, the_geom, a.active, t_node.expl_id FROM t_node JOIN cat_node c ON id=nodecat_id JOIN cat_feature_node n ON n.id=c.node_type LEFT JOIN (SELECT node_id, active FROM t_node JOIN (SELECT (json_array_elements_text((graphconfig::json->>''use'')::json))::json->>''nodeParent'' as node_id, active FROM dma WHERE graphconfig IS NOT NULL )a USING (node_id)) a USING (node_id) WHERE graph_delimiter=''DMA'' AND (a.node_id IS NULL OR node_id NOT IN (SELECT (json_array_elements_text((graphconfig::json->>''ignore'')::json))::text FROM dma WHERE active IS TRUE)) AND t_node.state > 0 and verified<>''2'' and a.active is false', info_msg='All nodes with cat_feature_node.graphdelimiter=''DMA'' are defined as nodeParent on dma.graphconfig', function_name='[gw_fct_graphanalytics_check_data, gw_fct_om_check_data, gw_fct_admin_check_data]' WHERE fid=180;