diff --git a/core/src/plugins/core.mailer/create.sqlite b/core/src/plugins/core.mailer/create.sqlite new file mode 100644 index 0000000000..adeb2d5a54 --- /dev/null +++ b/core/src/plugins/core.mailer/create.sqlite @@ -0,0 +1,24 @@ +CREATE TABLE ajxp_mail_queue ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + recipent TEXT, + url TEXT, + date_event INT, + notification_object blob, + html INT +); + +CREATE TABLE ajxp_mail_sent ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + recipent TEXT, + url TEXT, + date_event INT, + notification_object blob, + html INT +); + +CREATE TRIGGER mail_queue_go_to_sent BEFORE DELETE ON ajxp_mail_queue +FOR EACH ROW + BEGIN + INSERT INTO ajxp_mail_sent (id,recipent,url,date_event,notification_object,html) + VALUES (old.id,old.recipent,old.url,old.date_event,old.notification_object,old.html); + END; \ No newline at end of file