Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-03-03-23-44-14
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_3_1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
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 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2014
32 * $Id$
33 *
34 */
35 class CRM_Core_I18n_SchemaStructure_4_3_1 {
36 /**
37 * @return array
38 */
39 public static function &columns() {
40 static $result = NULL;
41 if (!$result) {
42 $result = array(
43 'civicrm_location_type' => array(
44 'display_name' => "varchar(64)",
45 ),
46 'civicrm_option_group' => array(
47 'title' => "varchar(255)",
48 'description' => "varchar(255)",
49 ),
50 'civicrm_contact_type' => array(
51 'label' => "varchar(64)",
52 'description' => "text",
53 ),
54 'civicrm_batch' => array(
55 'title' => "varchar(64)",
56 'description' => "text",
57 ),
58 'civicrm_premiums' => array(
59 'premiums_intro_title' => "varchar(255)",
60 'premiums_intro_text' => "text",
61 'premiums_nothankyou_label' => "varchar(255)",
62 ),
63 'civicrm_membership_status' => array(
64 'label' => "varchar(128)",
65 ),
66 'civicrm_survey' => array(
67 'thankyou_title' => "varchar(255)",
68 'thankyou_text' => "text",
69 ),
70 'civicrm_participant_status_type' => array(
71 'label' => "varchar(255)",
72 ),
73 'civicrm_tell_friend' => array(
74 'title' => "varchar(255)",
75 'intro' => "text",
76 'suggested_message' => "text",
77 'thankyou_title' => "varchar(255)",
78 'thankyou_text' => "text",
79 ),
80 'civicrm_custom_group' => array(
81 'title' => "varchar(64)",
82 'help_pre' => "text",
83 'help_post' => "text",
84 ),
85 'civicrm_custom_field' => array(
86 'label' => "varchar(255)",
87 'help_pre' => "text",
88 'help_post' => "text",
89 ),
90 'civicrm_option_value' => array(
91 'label' => "varchar(255)",
92 'description' => "text",
93 ),
94 'civicrm_group' => array(
95 'title' => "varchar(64)",
96 ),
97 'civicrm_contribution_page' => array(
98 'title' => "varchar(255)",
99 'intro_text' => "text",
100 'pay_later_text' => "text",
101 'pay_later_receipt' => "text",
102 'initial_amount_label' => "varchar(255)",
103 'initial_amount_help_text' => "text",
104 'thankyou_title' => "varchar(255)",
105 'thankyou_text' => "text",
106 'thankyou_footer' => "text",
107 'for_organization' => "text",
108 'receipt_from_name' => "varchar(255)",
109 'receipt_text' => "text",
110 'footer_text' => "text",
111 'honor_block_title' => "varchar(255)",
112 'honor_block_text' => "text",
113 ),
114 'civicrm_product' => array(
115 'name' => "varchar(255)",
116 'description' => "text",
117 'options' => "text",
118 ),
119 'civicrm_membership_type' => array(
120 'name' => "varchar(128)",
121 'description' => "varchar(255)",
122 ),
123 'civicrm_membership_block' => array(
124 'new_title' => "varchar(255)",
125 'new_text' => "text",
126 'renewal_title' => "varchar(255)",
127 'renewal_text' => "text",
128 ),
129 'civicrm_price_set' => array(
130 'title' => "varchar(255)",
131 'help_pre' => "text",
132 'help_post' => "text",
133 ),
134 'civicrm_dashboard' => array(
135 'label' => "varchar(255)",
136 ),
137 'civicrm_uf_group' => array(
138 'title' => "varchar(64)",
139 'help_pre' => "text",
140 'help_post' => "text",
141 ),
142 'civicrm_uf_field' => array(
143 'help_post' => "text",
144 'help_pre' => "text",
145 'label' => "varchar(255)",
146 ),
147 'civicrm_price_field' => array(
148 'label' => "varchar(255)",
149 'help_pre' => "text",
150 'help_post' => "text",
151 ),
152 'civicrm_price_field_value' => array(
153 'label' => "varchar(255)",
154 'description' => "text",
155 ),
156 'civicrm_pcp_block' => array(
157 'link_text' => "varchar(255)",
158 ),
159 'civicrm_event' => array(
160 'title' => "varchar(255)",
161 'summary' => "text",
162 'description' => "text",
163 'registration_link_text' => "varchar(255)",
164 'event_full_text' => "text",
165 'fee_label' => "varchar(255)",
166 'intro_text' => "text",
167 'footer_text' => "text",
168 'confirm_title' => "varchar(255)",
169 'confirm_text' => "text",
170 'confirm_footer_text' => "text",
171 'confirm_email_text' => "text",
172 'confirm_from_name' => "varchar(255)",
173 'thankyou_title' => "varchar(255)",
174 'thankyou_text' => "text",
175 'thankyou_footer_text' => "text",
176 'pay_later_text' => "text",
177 'pay_later_receipt' => "text",
178 'initial_amount_label' => "varchar(255)",
179 'initial_amount_help_text' => "text",
180 'waitlist_text' => "text",
181 'approval_req_text' => "text",
182 'template_title' => "varchar(255)",
183 ),
184 );
185 }
186 return $result;
187 }
188
189 /**
190 * @return array
191 */
192 public static function &indices() {
193 static $result = NULL;
194 if (!$result) {
195 $result = array(
196 'civicrm_custom_group' => array(
197 'UI_title_extends' => array(
198 'name' => 'UI_title_extends',
199 'field' => array(
200 'title',
201 'extends',
202 ),
203 'unique' => 1,
204 ),
205 ),
206 'civicrm_custom_field' => array(
207 'UI_label_custom_group_id' => array(
208 'name' => 'UI_label_custom_group_id',
209 'field' => array(
210 'label',
211 'custom_group_id',
212 ),
213 'unique' => 1,
214 ),
215 ),
216 'civicrm_group' => array(
217 'UI_title' => array(
218 'name' => 'UI_title',
219 'field' => array(
220 'title',
221 ),
222 'unique' => 1,
223 ),
224 ),
225 );
226 }
227 return $result;
228 }
229
230 /**
231 * @return array
232 */
233 public static function &tables() {
234 static $result = NULL;
235 if (!$result) {
236 $result = array_keys(self::columns());
237 }
238 return $result;
239 }
240
241 }