Merge pull request #7825 from torrance/editable-button-fix-master
[civicrm-core.git] / xml / schema / Core / Job.xml
CommitLineData
6a488035
TO
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>
8f069c03 11 <name>id</name>
32ac94e8 12 <title>Job ID</title>
8f069c03
EM
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Job Id</comment>
16 <add>4.1</add>
6a488035
TO
17 </field>
18 <primaryKey>
8f069c03
EM
19 <name>id</name>
20 <autoincrement>true</autoincrement>
6a488035
TO
21 </primaryKey>
22 <field>
8f069c03 23 <name>domain_id</name>
32ac94e8 24 <title>Job Domain</title>
8f069c03
EM
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>
6a488035
TO
34 </field>
35 <foreignKey>
8f069c03
EM
36 <name>domain_id</name>
37 <table>civicrm_domain</table>
38 <key>id</key>
39 <add>4.1</add>
6a488035
TO
40 </foreignKey>
41 <field>
8f069c03 42 <name>run_frequency</name>
32ac94e8 43 <title>Job Frequency</title>
8f069c03
EM
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>
6a488035
TO
55 </field>
56 <field>
8f069c03
EM
57 <name>last_run</name>
58 <type>datetime</type>
59 <default>NULL</default>
60 <comment>When was this cron entry last run</comment>
61 <add>4.1</add>
6a488035 62 </field>
e8f61813 63 <field>
d7bace22 64 <name>scheduled_run_date</name>
e8f61813
DRJ
65 <type>timestamp</type>
66 <default>NULL</default>
777717cf 67 <required>false</required>
d7bace22 68 <comment>When is this cron entry scheduled to run</comment>
e8f61813
DRJ
69 <add>4.7</add>
70 </field>
6a488035 71 <field>
8f069c03 72 <name>name</name>
32ac94e8 73 <title>Job Name</title>
8f069c03
EM
74 <type>varchar</type>
75 <length>255</length>
76 <comment>Title of the job</comment>
77 <add>4.1</add>
6a488035
TO
78 </field>
79 <field>
8f069c03 80 <name>description</name>
32ac94e8 81 <title>Job Description</title>
8f069c03
EM
82 <type>varchar</type>
83 <length>255</length>
84 <comment>Description of the job</comment>
85 <add>4.1</add>
6a488035
TO
86 </field>
87 <field>
8f069c03
EM
88 <name>api_prefix</name>
89 <type>varchar</type>
90 <length>255</length>
91 <default>"civicrm_api3"</default>
92 <comment>Prefix of the job api call</comment>
93 <add>4.1</add>
94 <drop>4.3</drop>
6a488035
TO
95 </field>
96 <field>
8f069c03 97 <name>api_entity</name>
32ac94e8 98 <title>API Entity</title>
8f069c03
EM
99 <type>varchar</type>
100 <length>255</length>
101 <comment>Entity of the job api call</comment>
102 <add>4.1</add>
6a488035
TO
103 </field>
104 <field>
8f069c03 105 <name>api_action</name>
32ac94e8 106 <title>API Action</title>
8f069c03
EM
107 <type>varchar</type>
108 <length>255</length>
109 <comment>Action of the job api call</comment>
110 <add>4.1</add>
6a488035
TO
111 </field>
112 <field>
8f069c03 113 <name>parameters</name>
32ac94e8 114 <title>API Parameters</title>
8f069c03
EM
115 <type>text</type>
116 <comment>List of parameters to the command.</comment>
117 <html>
118 <type>TextArea</type>
119 <rows>4</rows>
120 <cols>60</cols>
121 </html>
122 <add>4.1</add>
6a488035
TO
123 </field>
124 <field>
8f069c03 125 <name>is_active</name>
32ac94e8 126 <title>Job Is Active?</title>
8f069c03
EM
127 <type>boolean</type>
128 <comment>Is this job active?</comment>
129 <add>4.1</add>
6a488035
TO
130 </field>
131</table>