Skip to content

Commit

Permalink
fix(serial_number): move serial_number from man_netelement to node
Browse files Browse the repository at this point in the history
  • Loading branch information
mguzman14 committed Aug 9, 2024
1 parent 02c12df commit 0fb3755
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions updates/36/36012/ws/ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ update node n set brand_id = a.brand, model_id = a.model from (
select node_id, brand, model from man_valve
)a where n.node_id = a.node_id;

-- man_netelement (serial_number)
update node n set serial_number = a.serial_number from (
select node_id, serial_number from man_netelement
)a where n.node_id = a.node_id;



SELECT gw_fct_admin_manage_fields($${"data":{"action":"DROP","table":"man_greentap", "column":"brand"}}$$);
Expand All @@ -272,3 +277,5 @@ SELECT gw_fct_admin_manage_fields($${"data":{"action":"DROP","table":"man_pump",

SELECT gw_fct_admin_manage_fields($${"data":{"action":"DROP","table":"man_valve", "column":"brand"}}$$);
SELECT gw_fct_admin_manage_fields($${"data":{"action":"DROP","table":"man_valve", "column":"model"}}$$);

SELECT gw_fct_admin_manage_fields($${"data":{"action":"DROP","table":"man_netelement", "column":"serial_number"}}$$);

0 comments on commit 0fb3755

Please sign in to comment.