Commit 055e0804 authored by Matija Obreza's avatar Matija Obreza

migration: Only migrate storage for which acce entry exists

parent cf68d9f1
......@@ -2025,8 +2025,8 @@ databaseChangeLog:
changes:
- sql:
sql: >-
insert into accession_storage (accessionId, storage) select accessionId, storage from accessionstorage;
insert into accession_storage (accessionId, storage) select accessionId, storage from accessionstorageh;
insert into accession_storage (accessionId, storage) select accessionId, storage from accessionstorage inner join acce on acce.id=accessionstorage.accessionId;
insert into accession_storage (accessionId, storage) select accessionId, storage from accessionstorageh inner join acce on acce.id=accessionstorageh.accessionId;
- dropTable:
tableName: accessionstorage
- dropTable:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment