Changes between Version 6 and Version 7 of drmsSumRm
- Timestamp:
- 09/11/14 14:51:07 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
drmsSumRm
v6 v7 117 117 CREATE OR REPLACE FUNCTION no_retention ( ) RETURNS TRIGGER LANGUAGE PLPGSQL AS $$ 118 118 BEGIN 119 NEW.effective_date := to_char( (now()+INTERVAL '2 hours'), 'YYYYMMDDHH24MI' ); 119 NEW.effective_date := to_char( (now()+INTERVAL '6 hours'), 'YYYYMMDDHH24MI' ); 120 RETURN NEW; 120 121 END 121 122 $$; 122 123 123 CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention(); 124 }}} 124 CREATE TRIGGER no_retention BEFORE INSERT ON sum_partn_alloc FOR EACH ROW EXECUTE PROCEDURE no_retention();}}}