Skip to content

Commit

Permalink
delete invocation_id at end of migration
Browse files Browse the repository at this point in the history
  • Loading branch information
skovati committed Nov 7, 2024
1 parent 6e671cd commit 141cec3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ where invocation_id not in (select min(invocation_id)
alter table merlin.constraint_specification
drop constraint constraint_specification_pkey,
add constraint constraint_specification_pkey
primary key (plan_id, constraint_id);
primary key (plan_id, constraint_id),

drop column invocation_id;

-- similar action with constraint_runs
delete
Expand All @@ -56,4 +58,6 @@ where constraint_run.constraint_invocation_id not in (select min(constraint_invo
alter table merlin.constraint_run
drop constraint constraint_run_key,
add constraint constraint_run_key
primary key (constraint_id, constraint_revision, simulation_dataset_id);
primary key (constraint_id, constraint_revision, simulation_dataset_id),

drop column constraint_invocation_id;

0 comments on commit 141cec3

Please sign in to comment.