CRM-13497 - Move rows and cols
[civicrm-core.git] / xml / schema / Price / PriceField.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Price</base>
9da8dc8c 5 <class>PriceField</class>
6a488035
TO
6 <name>civicrm_price_field</name>
7 <add>1.8</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Price Field</comment>
14 <add>1.8</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>price_set_id</name>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>FK to civicrm_price_set</comment>
25 <add>1.8</add>
26 </field>
27 <foreignKey>
28 <name>price_set_id</name>
29 <table>civicrm_price_set</table>
30 <key>id</key>
31 <add>1.8</add>
32 </foreignKey>
33 <field>
34 <name>name</name>
35 <type>varchar</type>
36 <title>Name</title>
37 <length>255</length>
38 <required>true</required>
39 <comment>Variable name/programmatic handle for this field.</comment>
40 <add>1.8</add>
41 </field>
42 <index>
43 <name>index_name</name>
44 <fieldName>name</fieldName>
45 <add>1.8</add>
46 </index>
47 <field>
48 <name>label</name>
49 <type>varchar</type>
50 <title>Label</title>
51 <length>255</length>
52 <required>true</required>
53 <localizable>true</localizable>
54 <comment>Text for form field label (also friendly name for administering this field).</comment>
55 <add>1.8</add>
56 </field>
57 <field>
58 <name>html_type</name>
59 <type>enum</type>
60 <values>Text, Select, Radio, CheckBox</values>
61 <required>true</required>
62 <add>1.8</add>
63 </field>
64 <field>
65 <name>is_enter_qty</name>
66 <type>boolean</type>
67 <default>0</default>
68 <comment>Enter a quantity for this field?</comment>
69 <add>1.8</add>
70 </field>
71 <field>
72 <name>help_pre</name>
73 <type>text</type>
74 <localizable>true</localizable>
75 <comment>Description and/or help text to display before this field.</comment>
7deea513 76 <html>
77 <type>TextArea</type>
817807ab 78 <rows>4</rows>
79 <cols>80</cols>
7deea513 80 </html>
6a488035
TO
81 <add>1.8</add>
82 </field>
83 <field>
84 <name>help_post</name>
85 <type>text</type>
86 <localizable>true</localizable>
87 <comment>Description and/or help text to display after this field.</comment>
7deea513 88 <html>
89 <type>TextArea</type>
817807ab 90 <rows>4</rows>
91 <cols>80</cols>
7deea513 92 </html>
6a488035
TO
93 <add>1.8</add>
94 </field>
95 <field>
96 <name>weight</name>
97 <type>int</type>
98 <default>1</default>
99 <comment>Order in which the fields should appear</comment>
100 <add>1.8</add>
101 </field>
102 <field>
103 <name>is_display_amounts</name>
104 <type>boolean</type>
105 <default>1</default>
106 <comment>Should the price be displayed next to the label for each option?</comment>
107 </field>
108 <field>
109 <name>options_per_line</name>
110 <type>int unsigned</type>
111 <default>1</default>
112 <comment>number of options per line for checkbox and radio</comment>
113 <add>1.8</add>
114 </field>
115 <field>
116 <name>is_active</name>
117 <type>boolean</type>
118 <comment>Is this price field active</comment>
119 <default>1</default>
120 <add>1.8</add>
121 </field>
122 <field>
123 <name>is_required</name>
124 <type>boolean</type>
125 <comment>Is this price field required (value must be > 1)</comment>
126 <default>1</default>
127 <add>1.8</add>
128 </field>
129 <field>
130 <name>active_on</name>
131 <type>datetime</type>
132 <default>NULL</default>
133 <comment>If non-zero, do not show this field before the date specified</comment>
134 <add>1.8</add>
135 </field>
136 <field>
137 <name>expire_on</name>
138 <type>datetime</type>
139 <default>NULL</default>
140 <comment>If non-zero, do not show this field after the date specified</comment>
141 <add>1.8</add>
142 </field>
143 <field>
144 <name>javascript</name>
145 <type>varchar</type>
146 <length>255</length>
147 <comment>Optional scripting attributes for field</comment>
148 <add>1.8</add>
149 </field>
150 <field>
151 <name>visibility_id</name>
152 <type>int unsigned</type>
153 <default>1</default>
154 <comment>Implicit FK to civicrm_option_group with name = \'visibility\'</comment>
155 <add>3.2</add>
4080e473
AS
156 <pseudoconstant>
157 <optionGroupName>visibility</optionGroupName>
158 </pseudoconstant>
3c7d2158 159 </field>
6a488035
TO
160 <field>
161 <name>count</name>
162 <type>int unsigned</type>
163 <default>NULL</default>
164 <comment>Number of Participants Per field</comment>
165 <add>3.2</add>
166 <drop>3.3</drop>
167 </field>
168</table>
169