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