Skip to content
Snippets Groups Projects
Commit 923a8ca2 authored by wohlgemu's avatar wohlgemu
Browse files

Add Trigger/Functions

parent 5a904442
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,16 @@ CREATE TRIGGER update_issuer_request ...@@ -107,6 +107,16 @@ CREATE TRIGGER update_issuer_request
FOR EACH ROW FOR EACH ROW
EXECUTE FUNCTION public.update_issuer(); EXECUTE FUNCTION public.update_issuer();
-- Trigger: trg_hybrid_cost
-- DROP TRIGGER IF EXISTS trg_hybrid_cost ON public.finance_request;
CREATE OR REPLACE TRIGGER trg_hybrid_cost
AFTER INSERT
ON public.finance_request
FOR EACH ROW
EXECUTE FUNCTION public.fnct_hybrid_cost();
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
...@@ -252,19 +262,6 @@ END; ...@@ -252,19 +262,6 @@ END;
$BODY$; $BODY$;
-- Trigger: update_issuer_cost
-- DROP TRIGGER IF EXISTS update_issuer_cost ON public.finance_cost;
CREATE TRIGGER update_issuer_cost
BEFORE UPDATE
ON public.finance_cost
FOR EACH ROW
EXECUTE FUNCTION public.update_issuer();
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment