Skip to content

Commit

Permalink
update plan_derivation_group trigger name
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-super committed Oct 8, 2024
1 parent c1f11db commit 03e84f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ comment on column merlin.plan_derivation_group.derivation_group_name is e''
'The derivation group being associated with the plan.';

-- if an external source is linked to a plan it cannot be deleted
create function merlin.check_if_associated()
create function merlin.external_source_pdg_association_delete()
returns trigger
language plpgsql as $$
begin
Expand All @@ -33,6 +33,6 @@ begin
end;
$$;

create trigger check_if_associated
create trigger external_source_pdg_association_delete
before delete on merlin.external_source
for each row execute function merlin.check_if_associated();
for each row execute function merlin.external_source_pdg_association_delete();

0 comments on commit 03e84f5

Please sign in to comment.