myt/templates/trigger.ejs

8 lines
228 B
Plaintext
Raw Normal View History

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