Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit dac7652

Browse files
committed
Core.mailer : add DROP TRIGGER IF EXISTS
1 parent 6a41368 commit dac7652

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/plugins/core.mailer/create.mysql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ CREATE TABLE IF NOT EXISTS `ajxp_mail_sent` (
1717
`html` int(1) NOT NULL
1818
) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
1919
/* SEPARATOR */
20+
DROP TRIGGER IF EXISTS `mail_queue_go_to_sent`;
21+
2022
CREATE TRIGGER `mail_queue_go_to_sent` BEFORE DELETE ON `ajxp_mail_queue`
2123
FOR EACH ROW INSERT INTO ajxp_mail_sent (recipient,url,date_event,notification_object,html) VALUES (old.recipient,old.url,old.date_event,old.notification_object,old.html);

0 commit comments

Comments
 (0)