Skip to content
Snippets Groups Projects
Commit bb7b0de6 authored by piotr.gawron's avatar piotr.gawron
Browse files

fix on db (removing parent)

parent a9e3fb40
No related branches found
No related tags found
1 merge request!1Issue 37
update element_table set idcomplexdb=parent_iddb where idcomplexdb is null and parent_iddb is not null and parent_iddb in (select iddb from element_table where element_type_db= 'Complex');
update element_table set compartment_iddb = parent_iddb where compartment_iddb is null and parent_iddb is not null and parent_iddb in (select iddb from element_table where element_type_db<> 'Complex');
alter table element_table drop COLUMN parent_iddb ;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment