--
-- workflow__drop_attribute/2
--
create or replace function workflow__drop_attribute(
character varying,
character varying
) returns int4 as $$
declare
drop_attribute__workflow_key alias for $1;
drop_attribute__attribute_name alias for $2;
v_attribute_id integer;
begin
select attribute_id into v_attribute_id
from acs_attributes
where object_type = drop_attribute__workflow_key
and attribute_name = drop_attribute__attribute_name;
PERFORM acs_attribute__drop_attribute (
drop_attribute__workflow_key,
drop_attribute__attribute_name
);
return 0;
end;$$ language plpgsql;