Skip to content

Commit

Permalink
Fix migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 29, 2023
1 parent 8d02565 commit 46978b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_structure/versions/remove_model_tb_ss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function remove_model_tb_ss(db_url, log_level)
ec_id_by_name = Dict(x["name"] => x["id"] for x in ecs)
to_rm_ec_ids = unique(ec_id_by_name[name] for name in intersect(to_rm_ec_names, keys(ec_id_by_name)))
if !isempty(to_rm_ec_ids)
run_request(db_url, "call_method", ("cascade_remove_items",), Dict(:entity_class => to_rm_ec_ids))
run_request(db_url, "call_method", ("remove_items", "entity_class", to_rm_ec_ids...))
end
true
end

0 comments on commit 46978b5

Please sign in to comment.