Skip to content

Commit

Permalink
FIx migration script to use 0.8 API
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 29, 2023
1 parent e11b1f1 commit c836fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data_structure/versions/translate_ramp_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function translate_ramp_parameters(db_url, log_level)
for old_name in intersect(keys(new_name_by_old_name), keys(pid_by_name))
]
if !isempty(to_rm_pdef_ids)
run_request(db_url, "call_method", ("cascade_remove_items",), Dict(:parameter_definition => to_rm_pdef_ids))
run_request(db_url, "call_method", ("remove_items", "parameter_definition", to_rm_pdef_ids...))
end
if !isempty(to_upd_pdefs)
run_request(db_url, "call_method", ("update_parameter_definitions", to_upd_pdefs...))
run_request(db_url, "call_method", ("update_items", "parameter_definition", to_upd_pdefs...))
end
true
end

0 comments on commit c836fa4

Please sign in to comment.