Merge remote-tracking branch 'upstream/4.3' into 4.3-4.4-2013-10-21-22-31-28
[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 <type>int unsigned</type>
16 <required>true</required>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>queue_name</name>
24 <type>varchar</type>
25 <length>64</length>
26 <comment>Name of the queue which includes this item</comment>
27 <required>true</required>
28 </field>
29 <field>
30 <name>weight</name>
31 <type>int</type>
32 <required>true</required>
33 </field>
34 <field>
35 <name>submit_time</name>
36 <type>datetime</type>
37 <comment>date on which this item was submitted to the queue</comment>
38 <required>true</required>
39 </field>
40 <field>
41 <name>release_time</name>
42 <type>datetime</type>
43 <comment>date on which this job becomes available; null if ASAP</comment>
44 </field>
45 <field>
46 <name>data</name>
47 <title>Queue item datas</title>
48 <type>text</type>
49 <rows>8</rows>
50 <cols>60</cols>
51 <comment>Serialized queue</comment>
52 </field>
53 <index>
54 <name>index_queueids</name>
55 <fieldName>queue_name</fieldName>
56 <fieldName>weight</fieldName>
57 <fieldName>id</fieldName>
58 </index>
59 </table>