Merge pull request #17170 from colemanw/optionValueDefault
[civicrm-core.git] / xml / schema / Core / ActionLog.xml
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 <title>Action Schedule ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>3.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>contact_id</name>
22 <title>Action Schedule Contact ID</title>
23 <type>int unsigned</type>
24 <comment>FK to Contact ID</comment>
25 <add>3.4</add>
26 </field>
27 <foreignKey>
28 <name>contact_id</name>
29 <table>civicrm_contact</table>
30 <key>id</key>
31 <add>3.4</add>
32 <onDelete>CASCADE</onDelete>
33 </foreignKey>
34 <field>
35 <name>entity_id</name>
36 <title>Entity ID</title>
37 <type>int unsigned</type>
38 <required>true</required>
39 <comment>FK to id of the entity that the action was performed on. Pseudo - FK.</comment>
40 <add>3.4</add>
41 </field>
42 <field>
43 <name>entity_table</name>
44 <type>varchar</type>
45 <title>Entity Table</title>
46 <length>255</length>
47 <comment>name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant</comment>
48 <add>3.4</add>
49 </field>
50 <dynamicForeignKey>
51 <idColumn>entity_id</idColumn>
52 <typeColumn>entity_table</typeColumn>
53 <add>3.4</add>
54 </dynamicForeignKey>
55 <field>
56 <name>action_schedule_id</name>
57 <title>Schedule</title>
58 <type>int unsigned</type>
59 <required>true</required>
60 <comment>FK to the action schedule that this action originated from.</comment>
61 <add>3.4</add>
62 </field>
63 <foreignKey>
64 <name>action_schedule_id</name>
65 <table>civicrm_action_schedule</table>
66 <key>id</key>
67 <add>3.4</add>
68 <onDelete>CASCADE</onDelete>
69 </foreignKey>
70 <field>
71 <name>action_date_time</name>
72 <title>Action Date And Time</title>
73 <type>datetime</type>
74 <comment>date time that the action was performed on.</comment>
75 <add>3.4</add>
76 </field>
77 <field>
78 <name>is_error</name>
79 <title>Error?</title>
80 <type>boolean</type>
81 <default>0</default>
82 <comment>Was there any error sending the reminder?</comment>
83 <add>3.4</add>
84 </field>
85 <field>
86 <name>message</name>
87 <title>Message</title>
88 <type>text</type>
89 <comment>Description / text in case there was an error encountered.</comment>
90 <add>3.4</add>
91 </field>
92 <field>
93 <name>repetition_number</name>
94 <title>Repetition Number</title>
95 <type>int unsigned</type>
96 <comment>Keeps track of the sequence number of this repetition.</comment>
97 <add>3.4</add>
98 </field>
99 <field>
100 <name>reference_date</name>
101 <title>Reference Date</title>
102 <type>datetime</type>
103 <default>NULL</default>
104 <comment>Stores the date from the entity which triggered this reminder action (e.g. membership.end_date for most membership renewal reminders)</comment>
105 <add>4.6</add>
106 <change>5.17</change>
107 </field>
108 </table>