myt/exporters/trigger.ejs

8 lines
224 B
Plaintext
Raw Permalink Normal View History

DROP TRIGGER IF EXISTS <%- schema %>.<%- name %>;
2020-11-14 01:38:56 +00:00
DELIMITER $$
CREATE DEFINER=<%- definer %> TRIGGER <%- schema %>.<%- name %>
2020-11-14 01:38:56 +00:00
<%- actionTiming %> <%- actionType %> ON `<%- table %>`
FOR EACH ROW
<%- body %>$$
DELIMITER ;