diff --git a/persist/src/db/12.0.1/fix_db_20180723.sql b/persist/src/db/12.0.1/fix_db_20180723.sql new file mode 100644 index 0000000000000000000000000000000000000000..d4a1bab394e65235f4c3005ed11554aa303fafac --- /dev/null +++ b/persist/src/db/12.0.1/fix_db_20180723.sql @@ -0,0 +1,2 @@ +-- issue #461 - duplicates in reaction ids resolved +update reaction_table r set idreaction=concat(r.idreaction,'_',r.iddb) from (select idreaction, model_iddb from reaction_table group by idreaction, model_iddb having count(*)>1) t where r.idreaction=t.idreaction and r.model_iddb=t.model_iddb;