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