Merge pull request #19086 from agileware/CIVICRM-1617
[civicrm-core.git] / xml / schema / Queue / QueueItem.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <!--
5 NOTE: To facilitate upgrades, manually copy the CREATE TABLE statement
6 from sql/civicrm.mysql to sql/civicrm_queue_item.mysql
7 -->
8 <base>CRM/Queue</base>
9 <class>QueueItem</class>
10 <name>civicrm_queue_item</name>
11 <comment>Stores a list of queue items</comment>
12 <add>4.2</add>
13 <field>
14 <name>id</name>
15 <title>Queue ID</title>
16 <type>int unsigned</type>
17 <required>true</required>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>queue_name</name>
25 <title>Queue Name</title>
26 <type>varchar</type>
27 <length>64</length>
28 <comment>Name of the queue which includes this item</comment>
29 <required>true</required>
30 <html>
31 <type>Text</type>
32 </html>
33 </field>
34 <field>
35 <name>weight</name>
36 <title>Order</title>
37 <type>int</type>
38 <required>true</required>
39 <html>
40 <type>Text</type>
41 </html>
42 </field>
43 <field>
44 <name>submit_time</name>
45 <title>Submit Time</title>
46 <type>datetime</type>
47 <comment>date on which this item was submitted to the queue</comment>
48 <required>true</required>
49 <html>
50 <type>Select Date</type>
51 <formatType>activityDateTime</formatType>
52 </html>
53 </field>
54 <field>
55 <name>release_time</name>
56 <title>Release Time</title>
57 <type>datetime</type>
58 <comment>date on which this job becomes available; null if ASAP</comment>
59 <html>
60 <type>Select Date</type>
61 <formatType>activityDateTime</formatType>
62 </html>
63 </field>
64
65 <field>
66 <name>data</name>
67 <title>Queue item data</title>
68 <type>text</type>
69 <comment>Serialized queue data</comment>
70 <serialize>PHP</serialize>
71 </field>
72 <index>
73 <name>index_queueids</name>
74 <fieldName>queue_name</fieldName>
75 <fieldName>weight</fieldName>
76 <fieldName>id</fieldName>
77 </index>
78 </table>