projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a559c9a
)
mysql/core_notify_trigger_after_delete.sql
author
Alan Knowles
<alan@roojs.com>
Wed, 24 Oct 2018 06:36:01 +0000
(14:36 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 24 Oct 2018 06:36:01 +0000
(14:36 +0800)
mysql/core_notify_trigger_after_delete.sql
patch
|
blob
|
history
diff --git
a/mysql/core_notify_trigger_after_delete.sql
b/mysql/core_notify_trigger_after_delete.sql
index
59faadc
..
81de637
100644
(file)
--- a/
mysql/core_notify_trigger_after_delete.sql
+++ b/
mysql/core_notify_trigger_after_delete.sql
@@
-9,6
+9,7
@@
DELIMITER $$
CREATE TRIGGER core_notify_trigger_after_delete AFTER DELETE on core_notify
FOR EACH ROW
BEGIN
CREATE TRIGGER core_notify_trigger_after_delete AFTER DELETE on core_notify
FOR EACH ROW
BEGIN
+ -- I think we changed it so that sent is not null, deafult '0000....'
if old.sent is not null AND old.sent > '0001-01-01 00:00:00' THEN
UPDATE `Error: Can not delete core_notify after it is sent` SET x = 1;
END IF;
if old.sent is not null AND old.sent > '0001-01-01 00:00:00' THEN
UPDATE `Error: Can not delete core_notify after it is sent` SET x = 1;
END IF;