diff --git a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190527__extract_center_line.sql b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190527__extract_center_line.sql index 4ae7db924bebe3d0c93319996c8babfea66cf965..6a4f8b980fd4141cf61a3e835f1f793531a58d12 100644 --- a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190527__extract_center_line.sql +++ b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190527__extract_center_line.sql @@ -19,7 +19,7 @@ alter table reaction_table add column output_operator integer; update reaction_table set reactant = (select id from reaction_node_table where node_type_db='REACTANT_NODE' and reaction_id=reaction_table.id order by id limit 1); update reaction_table set product = (select id from reaction_node_table where node_type_db='PRODUCT_NODE' and reaction_id=reaction_table.id order by id limit 1); -update reaction_table set input_operator = (select id from reaction_node_table where node_type_db in ('AND_OPERATOR_NODE', 'ASSOCIATION_OPERATOR_NODE', 'NAND_OPERATOR_NODE', 'OR_OPERATOR_NODE') and reaction_id=reaction_table.id order by id limit 1); +update reaction_table set input_operator = (select id from reaction_node_table where node_type_db in ('AND_OPERATOR_NODE', 'ASSOCIATION_OPERATOR_NODE', 'NAND_OPERATOR_NODE', 'OR_OPERATOR_NODE', 'UNKNOWN_OPERATOR_NODE') and reaction_id=reaction_table.id order by id limit 1); update reaction_table set output_operator = (select id from reaction_node_table where node_type_db in ('DISSOCIATION_OPERATOR_NODE', 'SPLIT_OPERATOR_NODE', 'TRUNCATION_OPERATOR_NODE') and reaction_id=reaction_table.id order by id limit 1); update reaction_table set start_point = (select one_before_last_point from reaction_node_table, polyline_data_table where reaction_node_table.id = reaction_table.reactant and polyline_data_table.id = line_id);