This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core.mailer]Adding separator in the create sql file
- Loading branch information
Showing
3 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/* SEPARATOR */ | ||
CREATE TABLE IF NOT EXISTS `ajxp_mail_queue` ( | ||
`id` int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, | ||
`recipent` varchar(255) NOT NULL, | ||
`url` text NOT NULL, | ||
`date_event` int(11) NOT NULL, | ||
`notification_object` longblob NOT NULL, | ||
`html` int(1) NOT NULL | ||
) CHARACTER SET utf8 COLLATE utf8_unicode_ci; | ||
|
||
); | ||
/* SEPARATOR */ | ||
CREATE TABLE IF NOT EXISTS `ajxp_mail_sent` ( | ||
`id` int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, | ||
`recipent` varchar(255) NOT NULL, | ||
`url` text NOT NULL, | ||
`date_event` int(11) NOT NULL, | ||
`notification_object` longblob NOT NULL, | ||
`html` int(1) NOT NULL | ||
) CHARACTER SET utf8 COLLATE utf8_unicode_ci; | ||
|
||
); | ||
/* SEPARATOR */ | ||
CREATE TRIGGER `mail_queue_go_to_sent` BEFORE DELETE ON `ajxp_mail_queue` | ||
FOR EACH ROW 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters