CRM-15168 more title metadate fixes (& some whitespace snuck in)
[civicrm-core.git] / xml / schema / Mailing / MailingJob.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing</base>
9da8dc8c 5 <class>MailingJob</class>
6a488035
TO
6 <name>civicrm_mailing_job</name>
7 <comment>Stores information about the job that executes this mailing</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 </field>
14 <primaryKey>
15 <name>id</name>
16 <autoincrement>true</autoincrement>
17 </primaryKey>
18 <field>
19 <name>mailing_id</name>
20 <type>int unsigned</type>
21 <required>true</required>
22 <comment>The ID of the mailing this Job will send.</comment>
23 </field>
24 <foreignKey>
25 <name>mailing_id</name>
26 <table>civicrm_mailing</table>
27 <key>id</key>
28 <onDelete>CASCADE</onDelete>
29 </foreignKey>
30 <field>
31 <name>scheduled_date</name>
32 <type>datetime</type>
33 <comment>date on which this job was scheduled.</comment>
34 </field>
35 <field>
36 <name>start_date</name>
37 <type>datetime</type>
38 <comment>date on which this job was started.</comment>
39 </field>
40 <field>
41 <name>end_date</name>
42 <type>datetime</type>
43 <comment>date on which this job ended.</comment>
44 </field>
45 <field>
46 <name>status</name>
f3800cf8 47 <type>varchar</type>
48 <length>12</length>
6a488035 49 <comment>The state of this job</comment>
71a707c3 50 <pseudoconstant>
9775f926 51 <callback>CRM_Core_SelectValues::getMailingJobStatus</callback>
71a707c3 52 </pseudoconstant>
614d72ec 53 <html>
54 <type>Select</type>
55 </html>
6a488035
TO
56 </field>
57 <field>
58 <name>is_test</name>
59 <type>boolean</type>
60 <default>0</default>
61 <comment>Is this job for a test mail?</comment>
62 <add>1.9</add>
63 </field>
64 <field>
65 <name>job_type</name>
66 <type>varchar</type>
67 <length>255</length>
68 <comment>Type of mailling job: null | child </comment>
69 <add>3.3</add>
70 </field>
71 <field>
72 <name>parent_id</name>
73 <type>int unsigned</type>
74 <comment>Parent job id</comment>
75 <default>NULL</default>
76 <add>3.3</add>
77 </field>
78 <foreignKey>
79 <name>parent_id</name>
80 <table>civicrm_mailing_job</table>
81 <key>id</key>
82 <onDelete>CASCADE</onDelete>
83 </foreignKey>
84 <field>
85 <name>job_offset</name>
86 <type>int</type>
87 <comment>Offset of the child job</comment>
88 <default>0</default>
89 <add>3.3</add>
90 </field>
91 <field>
92 <name>job_limit</name>
93 <type>int</type>
94 <comment>Queue size limit for each child job</comment>
95 <default>0</default>
96 <add>3.3</add>
97 </field>
98</table>