--
-- ec_cat_prod_map_audit_tr/0
--
create or replace function ec_cat_prod_map_audit_tr(
  
) returns trigger as $$

begin
        insert into ec_category_product_map_audit (
        product_id, category_id,
        publisher_favorite_p,
        last_modified,
        last_modifying_user, modified_ip_address
        ) values (
        old.product_id, old.category_id,
        old.publisher_favorite_p,
        old.last_modified,
        old.last_modifying_user, old.modified_ip_address              
        );
	return new;
end;$$ language plpgsql;