fix date checks on stored procedures
[Pman.Core] / mysql / core_notify_trigger_after_delete.sql
index 81de637..7d714f4 100644 (file)
@@ -10,7 +10,7 @@ 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 
+            if old.sent is not null AND old.sent > '1500-01-01 00:00:00' THEN 
                 UPDATE `Error: Can not delete core_notify after it is sent` SET x = 1;
             END IF;
         END;