--
-- workflow__delete_transition/2
--
create or replace function workflow__delete_transition(
  character varying,
  character varying
) returns int4 as $$

declare
  delete_transition__workflow_key       alias for $1;  
  delete_transition__transition_key     alias for $2;  
begin
        delete from wf_transitions
        where  workflow_key = delete_transition__workflow_key
        and    transition_key = delete_transition__transition_key;

        return 0; 
end;$$ language plpgsql;