Added pseudoconstant for state province
[civicrm-core.git] / xml / schema / Core / Job.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Job</class>
6 <name>civicrm_job</name>
7 <comment>Scheduled job.</comment>
8 <add>4.1</add>
9 <log>false</log>
10 <field>
11 <name>id</name>
12 <title>Job ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Job Id</comment>
16 <add>4.1</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>domain_id</name>
24 <title>Job Domain</title>
25 <type>int unsigned</type>
26 <required>true</required>
27 <pseudoconstant>
28 <table>civicrm_domain</table>
29 <keyColumn>id</keyColumn>
30 <labelColumn>name</labelColumn>
31 </pseudoconstant>
32 <comment>Which Domain is this scheduled job for</comment>
33 <add>4.1</add>
34 </field>
35 <foreignKey>
36 <name>domain_id</name>
37 <table>civicrm_domain</table>
38 <key>id</key>
39 <add>4.1</add>
40 </foreignKey>
41 <field>
42 <name>run_frequency</name>
43 <title>Job Frequency</title>
44 <type>varchar</type>
45 <length>8</length>
46 <default>"Daily"</default>
47 <comment>Scheduled job run frequency.</comment>
48 <pseudoconstant>
49 <callback>CRM_Core_SelectValues::getJobFrequency</callback>
50 </pseudoconstant>
51 <add>4.1</add>
52 <html>
53 <type>Select</type>
54 </html>
55 </field>
56 <field>
57 <name>last_run</name>
58 <type>timestamp</type>
59 <default>NULL</default>
60 <required>false</required>
61 <comment>When was this cron entry last run</comment>
62 <add>4.1</add>
63 </field>
64 <field>
65 <name>scheduled_run_date</name>
66 <type>timestamp</type>
67 <default>NULL</default>
68 <required>false</required>
69 <comment>When is this cron entry scheduled to run</comment>
70 <add>4.7</add>
71 </field>
72 <field>
73 <name>name</name>
74 <title>Job Name</title>
75 <type>varchar</type>
76 <length>255</length>
77 <comment>Title of the job</comment>
78 <add>4.1</add>
79 </field>
80 <field>
81 <name>description</name>
82 <title>Job Description</title>
83 <type>varchar</type>
84 <length>255</length>
85 <comment>Description of the job</comment>
86 <add>4.1</add>
87 </field>
88 <field>
89 <name>api_prefix</name>
90 <type>varchar</type>
91 <length>255</length>
92 <default>"civicrm_api3"</default>
93 <comment>Prefix of the job api call</comment>
94 <add>4.1</add>
95 <drop>4.3</drop>
96 </field>
97 <field>
98 <name>api_entity</name>
99 <title>API Entity</title>
100 <type>varchar</type>
101 <length>255</length>
102 <comment>Entity of the job api call</comment>
103 <add>4.1</add>
104 </field>
105 <field>
106 <name>api_action</name>
107 <title>API Action</title>
108 <type>varchar</type>
109 <length>255</length>
110 <comment>Action of the job api call</comment>
111 <add>4.1</add>
112 </field>
113 <field>
114 <name>parameters</name>
115 <title>API Parameters</title>
116 <type>text</type>
117 <comment>List of parameters to the command.</comment>
118 <html>
119 <type>TextArea</type>
120 <rows>4</rows>
121 <cols>60</cols>
122 </html>
123 <add>4.1</add>
124 </field>
125 <field>
126 <name>is_active</name>
127 <title>Job Is Active?</title>
128 <type>boolean</type>
129 <comment>Is this job active?</comment>
130 <add>4.1</add>
131 </field>
132 </table>