| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>ActionLog</class> |
| 6 | <name>civicrm_action_log</name> |
| 7 | <comment>Table to store log for the reminder.</comment> |
| 8 | <add>3.4</add> |
| 9 | <field> |
| 10 | <name>id</name> |
| 11 | <type>int unsigned</type> |
| 12 | <required>true</required> |
| 13 | <add>3.4</add> |
| 14 | </field> |
| 15 | <primaryKey> |
| 16 | <name>id</name> |
| 17 | <autoincrement>true</autoincrement> |
| 18 | </primaryKey> |
| 19 | <field> |
| 20 | <name>contact_id</name> |
| 21 | <type>int unsigned</type> |
| 22 | <comment>FK to Contact ID</comment> |
| 23 | <add>3.4</add> |
| 24 | </field> |
| 25 | <foreignKey> |
| 26 | <name>contact_id</name> |
| 27 | <table>civicrm_contact</table> |
| 28 | <key>id</key> |
| 29 | <add>3.4</add> |
| 30 | <onDelete>CASCADE</onDelete> |
| 31 | </foreignKey> |
| 32 | <field> |
| 33 | <name>entity_id</name> |
| 34 | <type>int unsigned</type> |
| 35 | <required>true</required> |
| 36 | <comment>FK to id of the entity that the action was performed on. Pseudo - FK.</comment> |
| 37 | <add>3.4</add> |
| 38 | </field> |
| 39 | <field> |
| 40 | <name>entity_table</name> |
| 41 | <type>varchar</type> |
| 42 | <length>255</length> |
| 43 | <comment>name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant</comment> |
| 44 | <add>3.4</add> |
| 45 | </field> |
| 46 | <dynamicForeignKey> |
| 47 | <idColumn>entity_id</idColumn> |
| 48 | <typeColumn>entity_table</typeColumn> |
| 49 | <add>3.4</add> |
| 50 | </dynamicForeignKey> |
| 51 | <field> |
| 52 | <name>action_schedule_id</name> |
| 53 | <type>int unsigned</type> |
| 54 | <required>true</required> |
| 55 | <comment>FK to the action schedule that this action originated from.</comment> |
| 56 | <add>3.4</add> |
| 57 | </field> |
| 58 | <foreignKey> |
| 59 | <name>action_schedule_id</name> |
| 60 | <table>civicrm_action_schedule</table> |
| 61 | <key>id</key> |
| 62 | <add>3.4</add> |
| 63 | <onDelete>CASCADE</onDelete> |
| 64 | </foreignKey> |
| 65 | <field> |
| 66 | <name>action_date_time</name> |
| 67 | <type>datetime</type> |
| 68 | <comment>date time that the action was performed on.</comment> |
| 69 | <add>3.4</add> |
| 70 | </field> |
| 71 | <field> |
| 72 | <name>is_error</name> |
| 73 | <type>boolean</type> |
| 74 | <default>0</default> |
| 75 | <comment>Was there any error sending the reminder?</comment> |
| 76 | <add>3.4</add> |
| 77 | </field> |
| 78 | <field> |
| 79 | <name>message</name> |
| 80 | <type>text</type> |
| 81 | <comment>Description / text in case there was an error encountered.</comment> |
| 82 | <add>3.4</add> |
| 83 | </field> |
| 84 | <field> |
| 85 | <name>repetition_number</name> |
| 86 | <type>int unsigned</type> |
| 87 | <comment>Keeps track of the sequence number of this repetition.</comment> |
| 88 | <add>3.4</add> |
| 89 | </field> |
| 90 | </table> |