Merge pull request #3152 from pradpnayak/CRM-14112
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_3_2_beta4.php
CommitLineData
6a488035
TO
1<?php
2/*
3+--------------------------------------------------------------------+
06b69b18 4| CiviCRM version 4.5 |
6a488035 5+--------------------------------------------------------------------+
06b69b18 6| Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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
06b69b18 31 * @copyright CiviCRM LLC (c) 2004-2014
6a488035
TO
32 * $Id$
33 *
34 */
35class CRM_Core_I18n_SchemaStructure_3_2_beta4 {
36 static function &columns() {
37 static $result = NULL;
38 if (!$result) {
39 $result = array(
40 'civicrm_option_group' => array(
41 'label' => 'varchar(255)',
42 'description' => 'varchar(255)',
43 ),
44 'civicrm_contact' => array(
45 'sort_name' => 'varchar(128)',
46 'display_name' => 'varchar(128)',
47 'first_name' => 'varchar(64)',
48 'middle_name' => 'varchar(64)',
49 'last_name' => 'varchar(64)',
50 'email_greeting_display' => 'varchar(255)',
51 'postal_greeting_display' => 'varchar(255)',
52 'addressee_display' => 'varchar(255)',
53 'household_name' => 'varchar(128)',
54 'organization_name' => 'varchar(128)',
55 ),
56 'civicrm_contact_type' => array(
57 'label' => 'varchar(64)',
58 'description' => 'text',
59 ),
60 'civicrm_mailing_component' => array(
61 'name' => 'varchar(64)',
62 'subject' => 'varchar(255)',
63 'body_html' => 'text',
64 'body_text' => 'text',
65 ),
66 'civicrm_mailing' => array(
67 'name' => 'varchar(128)',
68 'from_name' => 'varchar(128)',
69 'subject' => 'varchar(128)',
70 'body_text' => 'longtext',
71 'body_html' => 'longtext',
72 ),
73 'civicrm_premiums' => array(
74 'premiums_intro_title' => 'varchar(255)',
75 'premiums_intro_text' => 'text',
76 ),
77 'civicrm_product' => array(
78 'name' => 'varchar(255)',
79 'description' => 'text',
80 'options' => 'text',
81 ),
82 'civicrm_membership_type' => array(
83 'name' => 'varchar(128)',
84 'description' => 'varchar(255)',
85 ),
86 'civicrm_membership_status' => array(
87 'label' => 'varchar(128)',
88 ),
89 'civicrm_participant_status_type' => array(
90 'label' => 'varchar(255)',
91 ),
92 'civicrm_tell_friend' => array(
93 'title' => 'varchar(255)',
94 'intro' => 'text',
95 'suggested_message' => 'text',
96 'thankyou_title' => 'varchar(255)',
97 'thankyou_text' => 'text',
98 ),
99 'civicrm_price_set' => array(
100 'title' => 'varchar(255)',
101 'help_pre' => 'text',
102 'help_post' => 'text',
103 ),
104 'civicrm_custom_group' => array(
105 'title' => 'varchar(64)',
106 'help_pre' => 'text',
107 'help_post' => 'text',
108 ),
109 'civicrm_custom_field' => array(
110 'label' => 'varchar(255)',
111 'help_pre' => 'text',
112 'help_post' => 'text',
113 ),
114 'civicrm_dashboard' => array(
115 'label' => 'varchar(255)',
116 ),
117 'civicrm_option_value' => array(
118 'label' => 'varchar(255)',
119 'description' => 'varchar(255)',
120 ),
121 'civicrm_contribution_page' => array(
122 'title' => 'varchar(255)',
123 'intro_text' => 'text',
124 'pay_later_text' => 'text',
125 'pay_later_receipt' => 'text',
126 'thankyou_title' => 'varchar(255)',
127 'thankyou_text' => 'text',
128 'thankyou_footer' => 'text',
129 'for_organization' => 'text',
130 'receipt_from_name' => 'varchar(255)',
131 'receipt_text' => 'text',
132 'footer_text' => 'text',
133 'honor_block_title' => 'varchar(255)',
134 'honor_block_text' => 'text',
135 ),
136 'civicrm_membership_block' => array(
137 'new_title' => 'varchar(255)',
138 'new_text' => 'text',
139 'renewal_title' => 'varchar(255)',
140 'renewal_text' => 'text',
141 ),
142 'civicrm_price_field' => array(
143 'label' => 'varchar(255)',
144 'help_pre' => 'text',
145 'help_post' => 'text',
146 ),
147 'civicrm_uf_group' => array(
148 'title' => 'varchar(64)',
149 'help_pre' => 'text',
150 'help_post' => 'text',
151 ),
152 'civicrm_uf_field' => array(
153 'help_post' => 'text',
154 'help_pre' => 'text',
155 'label' => 'varchar(255)',
156 ),
157 'civicrm_address' => array(
158 'street_address' => 'varchar(96)',
159 'supplemental_address_1' => 'varchar(96)',
160 'supplemental_address_2' => 'varchar(96)',
161 'supplemental_address_3' => 'varchar(96)',
162 'city' => 'varchar(64)',
163 'name' => 'varchar(255)',
164 ),
165 'civicrm_event' => array(
166 'title' => 'varchar(255)',
167 'summary' => 'text',
168 'description' => 'text',
169 'registration_link_text' => 'varchar(255)',
170 'event_full_text' => 'text',
171 'fee_label' => 'varchar(255)',
172 'intro_text' => 'text',
173 'footer_text' => 'text',
174 'confirm_title' => 'varchar(255)',
175 'confirm_text' => 'text',
176 'confirm_footer_text' => 'text',
177 'confirm_email_text' => 'text',
178 'confirm_from_name' => 'varchar(255)',
179 'thankyou_title' => 'varchar(255)',
180 'thankyou_text' => 'text',
181 'thankyou_footer_text' => 'text',
182 'pay_later_text' => 'text',
183 'pay_later_receipt' => 'text',
184 'waitlist_text' => 'text',
185 'approval_req_text' => 'text',
186 'template_title' => 'varchar(255)',
187 ),
188 );
189 }
190 return $result;
191 }
192
193 static function &indices() {
194 static $result = NULL;
195 if (!$result) {
196 $result = array(
197 'civicrm_contact' => array(
198 'index_sort_name' => array(
199 'name' => 'index_sort_name',
200 'field' => array(
201 'sort_name',
202 ),
203 ),
204 'index_first_name' => array(
205 'name' => 'index_first_name',
206 'field' => array(
207 'first_name',
208 ),
209 ),
210 'index_last_name' => array(
211 'name' => 'index_last_name',
212 'field' => array(
213 'last_name',
214 ),
215 ),
216 'index_household_name' => array(
217 'name' => 'index_household_name',
218 'field' => array(
219 'household_name',
220 ),
221 ),
222 'index_organization_name' => array(
223 'name' => 'index_organization_name',
224 'field' => array(
225 'organization_name',
226 ),
227 ),
228 ),
229 'civicrm_price_set' => array(
230 'UI_title' => array(
231 'name' => 'UI_title',
232 'field' => array(
233 'title',
234 ),
235 'unique' => 1,
236 ),
237 ),
238 'civicrm_custom_group' => array(
239 'UI_title_extends' => array(
240 'name' => 'UI_title_extends',
241 'field' => array(
242 'title',
243 'extends',
244 ),
245 'unique' => 1,
246 ),
247 ),
248 'civicrm_custom_field' => array(
249 'UI_label_custom_group_id' => array(
250 'name' => 'UI_label_custom_group_id',
251 'field' => array(
252 'label',
253 'custom_group_id',
254 ),
255 'unique' => 1,
256 ),
257 ),
258 'civicrm_address' => array(
259 'index_city' => array(
260 'name' => 'index_city',
261 'field' => array(
262 'city',
263 ),
264 ),
265 ),
266 );
267 }
268 return $result;
269 }
270
271 static function &tables() {
272 static $result = NULL;
273 if (!$result) {
274 $result = array_keys(self::columns());
275 }
276 return $result;
277 }
278}
279