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

Commit

Permalink
[core.mailer]Adding the SQLite create file for the database
Browse files Browse the repository at this point in the history
  • Loading branch information
isma91 committed Mar 8, 2016
1 parent 4393b1f commit d0e3ffe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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;

0 comments on commit d0e3ffe

Please sign in to comment.