Merge pull request #2842 from totten/master-api-rollback-soft-errors
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_3_1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27 /**
28 *
29 * @package CRM
30 * @copyright CiviCRM LLC (c) 2004-2014
31 * $Id$
32 *
33 */
34 class CRM_Core_I18n_SchemaStructure_4_3_1
35 {
36 /**
37 * @return array
38 */
39 static function &columns()
40 {
41 static $result = null;
42 if (!$result) {
43 $result = array(
44 'civicrm_location_type' => array(
45 'display_name' => "varchar(64)",
46 ) ,
47 'civicrm_option_group' => array(
48 'title' => "varchar(255)",
49 'description' => "varchar(255)",
50 ) ,
51 'civicrm_contact_type' => array(
52 'label' => "varchar(64)",
53 'description' => "text",
54 ) ,
55 'civicrm_batch' => array(
56 'title' => "varchar(64)",
57 'description' => "text",
58 ) ,
59 'civicrm_premiums' => array(
60 'premiums_intro_title' => "varchar(255)",
61 'premiums_intro_text' => "text",
62 'premiums_nothankyou_label' => "varchar(255)",
63 ) ,
64 'civicrm_membership_status' => array(
65 'label' => "varchar(128)",
66 ) ,
67 'civicrm_survey' => array(
68 'thankyou_title' => "varchar(255)",
69 'thankyou_text' => "text",
70 ) ,
71 'civicrm_participant_status_type' => array(
72 'label' => "varchar(255)",
73 ) ,
74 'civicrm_tell_friend' => array(
75 'title' => "varchar(255)",
76 'intro' => "text",
77 'suggested_message' => "text",
78 'thankyou_title' => "varchar(255)",
79 'thankyou_text' => "text",
80 ) ,
81 'civicrm_custom_group' => array(
82 'title' => "varchar(64)",
83 'help_pre' => "text",
84 'help_post' => "text",
85 ) ,
86 'civicrm_custom_field' => array(
87 'label' => "varchar(255)",
88 'help_pre' => "text",
89 'help_post' => "text",
90 ) ,
91 'civicrm_option_value' => array(
92 'label' => "varchar(255)",
93 'description' => "text",
94 ) ,
95 'civicrm_group' => array(
96 'title' => "varchar(64)",
97 ) ,
98 'civicrm_contribution_page' => array(
99 'title' => "varchar(255)",
100 'intro_text' => "text",
101 'pay_later_text' => "text",
102 'pay_later_receipt' => "text",
103 'initial_amount_label' => "varchar(255)",
104 'initial_amount_help_text' => "text",
105 'thankyou_title' => "varchar(255)",
106 'thankyou_text' => "text",
107 'thankyou_footer' => "text",
108 'for_organization' => "text",
109 'receipt_from_name' => "varchar(255)",
110 'receipt_text' => "text",
111 'footer_text' => "text",
112 'honor_block_title' => "varchar(255)",
113 'honor_block_text' => "text",
114 ) ,
115 'civicrm_product' => array(
116 'name' => "varchar(255)",
117 'description' => "text",
118 'options' => "text",
119 ) ,
120 'civicrm_membership_type' => array(
121 'name' => "varchar(128)",
122 'description' => "varchar(255)",
123 ) ,
124 'civicrm_membership_block' => array(
125 'new_title' => "varchar(255)",
126 'new_text' => "text",
127 'renewal_title' => "varchar(255)",
128 'renewal_text' => "text",
129 ) ,
130 'civicrm_price_set' => array(
131 'title' => "varchar(255)",
132 'help_pre' => "text",
133 'help_post' => "text",
134 ) ,
135 'civicrm_dashboard' => array(
136 'label' => "varchar(255)",
137 ) ,
138 'civicrm_uf_group' => array(
139 'title' => "varchar(64)",
140 'help_pre' => "text",
141 'help_post' => "text",
142 ) ,
143 'civicrm_uf_field' => array(
144 'help_post' => "text",
145 'help_pre' => "text",
146 'label' => "varchar(255)",
147 ) ,
148 'civicrm_price_field' => array(
149 'label' => "varchar(255)",
150 'help_pre' => "text",
151 'help_post' => "text",
152 ) ,
153 'civicrm_price_field_value' => array(
154 'label' => "varchar(255)",
155 'description' => "text",
156 ) ,
157 'civicrm_pcp_block' => array(
158 'link_text' => "varchar(255)",
159 ) ,
160 'civicrm_event' => array(
161 'title' => "varchar(255)",
162 'summary' => "text",
163 'description' => "text",
164 'registration_link_text' => "varchar(255)",
165 'event_full_text' => "text",
166 'fee_label' => "varchar(255)",
167 'intro_text' => "text",
168 'footer_text' => "text",
169 'confirm_title' => "varchar(255)",
170 'confirm_text' => "text",
171 'confirm_footer_text' => "text",
172 'confirm_email_text' => "text",
173 'confirm_from_name' => "varchar(255)",
174 'thankyou_title' => "varchar(255)",
175 'thankyou_text' => "text",
176 'thankyou_footer_text' => "text",
177 'pay_later_text' => "text",
178 'pay_later_receipt' => "text",
179 'initial_amount_label' => "varchar(255)",
180 'initial_amount_help_text' => "text",
181 'waitlist_text' => "text",
182 'approval_req_text' => "text",
183 'template_title' => "varchar(255)",
184 ) ,
185 );
186 }
187 return $result;
188 }
189
190 /**
191 * @return array
192 */
193 static function &indices()
194 {
195 static $result = null;
196 if (!$result) {
197 $result = array(
198 'civicrm_custom_group' => array(
199 'UI_title_extends' => array(
200 'name' => 'UI_title_extends',
201 'field' => array(
202 'title',
203 'extends',
204 ) ,
205 'unique' => 1,
206 ) ,
207 ) ,
208 'civicrm_custom_field' => array(
209 'UI_label_custom_group_id' => array(
210 'name' => 'UI_label_custom_group_id',
211 'field' => array(
212 'label',
213 'custom_group_id',
214 ) ,
215 'unique' => 1,
216 ) ,
217 ) ,
218 'civicrm_group' => array(
219 'UI_title' => array(
220 'name' => 'UI_title',
221 'field' => array(
222 'title',
223 ) ,
224 'unique' => 1,
225 ) ,
226 ) ,
227 );
228 }
229 return $result;
230 }
231
232 /**
233 * @return array
234 */
235 static function &tables()
236 {
237 static $result = null;
238 if (!$result) {
239 $result = array_keys(self::columns());
240 }
241 return $result;
242 }
243 }