1
BEGIN
2
INSERT INTO SystemEventDates(eventsource) SELECT 'WriteConfigControl' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM SystemEventDates WHERE eventsource='WriteConfigControl' LIMIT 1);
3
INSERT INTO SystemEventDates(eventsource) SELECT 'AlertTemplates' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM SystemEventDates WHERE eventsource='AlertTemplates' LIMIT 1);
4
END