sync
authorAlan Knowles <alan@roojs.com>
Fri, 15 Jun 2018 07:41:48 +0000 (15:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Jun 2018 07:41:48 +0000 (15:41 +0800)
DataObjects/Core_event_audit_archive.php [new file with mode: 0644]
mysql/core_notify_trigger_after_delete.sql [new file with mode: 0644]
templates/images/mailAddClose.gif [new file with mode: 0644]

diff --git a/DataObjects/Core_event_audit_archive.php b/DataObjects/Core_event_audit_archive.php
new file mode 100644 (file)
index 0000000..747a1dd
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Table Definition for core_events_archive
+ */
+require_once 'Core_event_audit.php';
+
+class Pman_Core_DataObjects_Core_events_audit_archive extends Pman_Core_DataObjects_Core_event_audit
+{
+    ###START_AUTOCODE
+    /* the code below is auto generated do not remove the above tag */
+
+    public $__table = 'core_event_audit_archive';    // table name
+    
+    
+   
+    
+    
+}
\ No newline at end of file
diff --git a/mysql/core_notify_trigger_after_delete.sql b/mysql/core_notify_trigger_after_delete.sql
new file mode 100644 (file)
index 0000000..400a4e4
--- /dev/null
@@ -0,0 +1,20 @@
+
+
+-- can not delete 'sent' notifications -- trick is to 'null the sent before deleting...
+
+DROP TRIGGER IF EXISTS core_notify_trigger_after_delete;
+
+DELIMITER $$
+CREATE TRIGGER core_notify_trigger_after_delete AFTER DELETE on core_notify
+    FOR EACH ROW
+        BEGIN
+            if old.sent is not null THEN 
+                UPDATE `Error: Can not delete core_notify after it is sent` SET x = 1;
+            END IF;
+        END;
+
+$$
+
+DELIMITER ;
diff --git a/templates/images/mailAddClose.gif b/templates/images/mailAddClose.gif
new file mode 100644 (file)
index 0000000..0a05a52
Binary files /dev/null and b/templates/images/mailAddClose.gif differ