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

Commit 045b95d

Browse files
committed
Re-format to be able execute from Pydio installer
1 parent c23170b commit 045b95d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SEPARATOR */
1+
/** SEPARATOR **/
22
CREATE TABLE IF NOT EXISTS ajxp_mail_queue (
33
id serial PRIMARY KEY,
44
recipient varchar(255) NOT NULL,
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS ajxp_mail_queue (
77
notification_object bytea NOT NULL,
88
html integer NOT NULL
99
);
10-
/* SEPARATOR */
10+
/** SEPARATOR **/
1111
CREATE TABLE IF NOT EXISTS ajxp_mail_sent (
1212
id serial PRIMARY KEY,
1313
recipient varchar(255) NOT NULL,
@@ -16,14 +16,15 @@ CREATE TABLE IF NOT EXISTS ajxp_mail_sent (
1616
notification_object bytea NOT NULL,
1717
html integer NOT NULL
1818
);
19-
/* SEPARATOR */
19+
/** SEPARATOR **/
20+
/** BLOCK **/
2021
CREATE FUNCTION ajxp_send_mail() RETURNS trigger AS $ajxp_send_mail$
2122
BEGIN
2223
INSERT INTO ajxp_mail_sent (recipient,url,date_event,notification_object,html)
2324
VALUES (OLD.recipient,OLD.url,OLD.date_event,OLD.notification_object,OLD.html);
2425
RETURN OLD;
2526
END;
2627
$ajxp_send_mail$ LANGUAGE plpgsql;
27-
/* SEPARATOR */
28+
/** SEPARATOR **/
2829
CREATE TRIGGER mail_queue_go_to_sent BEFORE DELETE ON ajxp_mail_queue
29-
FOR EACH ROW EXECUTE PROCEDURE ajxp_send_mail();
30+
FOR EACH ROW EXECUTE PROCEDURE ajxp_send_mail();

0 commit comments

Comments
 (0)