Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-05-01-14-11-47
[civicrm-core.git] / xml / schema / Contribute / Premium.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contribute</base>
5 <class>Premium</class>
6 <comment>table - settings for the Premiums features for a given contribution page </comment>
7 <name>civicrm_premiums</name>
8 <add>1.4</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>1.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>entity_table</name>
22 <type>varchar</type>
23 <length>64</length>
24 <required>true</required>
25 <comment>Joins these premium settings to another object. Always civicrm_contribution_page for now.</comment>
26 <add>1.4</add>
27 </field>
28 <field>
29 <name>entity_id</name>
30 <type>int unsigned</type>
31 <required>true</required>
32 <add>1.4</add>
33 </field>
34 <dynamicForeignKey>
35 <idColumn>entity_id</idColumn>
36 <typeColumn>entity_table</typeColumn>
37 <add>1.4</add>
38 </dynamicForeignKey>
39 <field>
40 <name>premiums_active </name>
41 <type>boolean</type>
42 <default>0</default>
43 <required>true</required>
44 <comment>Is the Premiums feature enabled for this page?</comment>
45 <add>1.4</add>
46 </field>
47 <field>
48 <name>premiums_intro_title</name>
49 <type>varchar</type>
50 <title>Title for Premiums section</title>
51 <length>255</length>
52 <localizable>true</localizable>
53 <comment>Title for Premiums section.</comment>
54 <add>1.4</add>
55 </field>
56 <field>
57 <name>premiums_intro_text</name>
58 <type>text</type>
59 <localizable>true</localizable>
60 <comment>Displayed in &lt;div&gt; at top of Premiums section of page. Text and HTML allowed.</comment>
61 <add>1.4</add>
62 </field>
63 <field>
64 <name>premiums_contact_email</name>
65 <type>varchar</type>
66 <length>100</length>
67 <comment>This email address is included in receipts if it is populated and a premium has been selected.</comment>
68 <add>1.4</add>
69 </field>
70 <field>
71 <name>premiums_contact_phone</name>
72 <title>Premiums Contact Phone</title>
73 <type>varchar</type>
74 <length>50</length>
75 <comment>This phone number is included in receipts if it is populated and a premium has been selected.</comment>
76 <add>1.4</add>
77 </field>
78 <field>
79 <name>premiums_display_min_contribution</name>
80 <type>boolean</type>
81 <required>true</required>
82 <comment>Boolean. Should we automatically display minimum contribution amount text after the premium descriptions.</comment>
83 <add>1.4</add>
84 </field>
85 <field>
86 <name>premiums_nothankyou_label</name>
87 <title>No Thank-you Text</title>
88 <type>varchar</type>
89 <length>255</length>
90 <localizable>true</localizable>
91 <comment>Label displayed for No Thank-you option in premiums block (e.g. No thank you)</comment>
92 <add>4.3</add>
93 </field>
94 <field>
95 <name>premiums_nothankyou_position</name>
96 <title>No Thank-you Position</title>
97 <type>int unsigned</type>
98 <default>1</default>
99 <add>4.3</add>
100 </field>
101 </table>