Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-08-28-20-20-34
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_3_1_alpha1.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
232624b1 4 | CiviCRM version 4.4 |
6a488035
TO
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2013 |
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-2013
32 * $Id$
33 *
34 */
35class CRM_Core_I18n_SchemaStructure_3_1_alpha1 {
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 'name' => '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_option_value' => array(
115 'label' => 'varchar(255)',
116 'description' => 'varchar(255)',
117 ),
118 'civicrm_contribution_page' => array(
119 'title' => 'varchar(255)',
120 'intro_text' => 'text',
121 'pay_later_text' => 'text',
122 'pay_later_receipt' => 'text',
123 'thankyou_title' => 'varchar(255)',
124 'thankyou_text' => 'text',
125 'thankyou_footer' => 'text',
126 'for_organization' => 'text',
127 'receipt_from_name' => 'varchar(255)',
128 'receipt_text' => 'text',
129 'footer_text' => 'text',
130 'honor_block_title' => 'varchar(255)',
131 'honor_block_text' => 'text',
132 ),
133 'civicrm_membership_block' => array(
134 'new_title' => 'varchar(255)',
135 'new_text' => 'text',
136 'renewal_title' => 'varchar(255)',
137 'renewal_text' => 'text',
138 ),
139 'civicrm_price_field' => array(
140 'label' => 'varchar(255)',
141 'help_pre' => 'text',
142 'help_post' => 'text',
143 ),
144 'civicrm_uf_group' => array(
145 'title' => 'varchar(64)',
146 'help_pre' => 'text',
147 'help_post' => 'text',
148 ),
149 'civicrm_uf_field' => array(
150 'help_post' => 'text',
151 'label' => 'varchar(255)',
152 ),
153 'civicrm_address' => array(
154 'street_address' => 'varchar(96)',
155 'supplemental_address_1' => 'varchar(96)',
156 'supplemental_address_2' => 'varchar(96)',
157 'supplemental_address_3' => 'varchar(96)',
158 'city' => 'varchar(64)',
159 'name' => 'varchar(255)',
160 ),
161 'civicrm_event' => array(
162 'title' => 'varchar(255)',
163 'summary' => 'text',
164 'description' => 'text',
165 'registration_link_text' => 'varchar(255)',
166 'event_full_text' => 'text',
167 'fee_label' => 'varchar(255)',
168 'intro_text' => 'text',
169 'footer_text' => 'text',
170 'confirm_title' => 'varchar(255)',
171 'confirm_text' => 'text',
172 'confirm_footer_text' => 'text',
173 'confirm_email_text' => 'text',
174 'confirm_from_name' => 'varchar(255)',
175 'thankyou_title' => 'varchar(255)',
176 'thankyou_text' => 'text',
177 'thankyou_footer_text' => 'text',
178 'pay_later_text' => 'text',
179 'pay_later_receipt' => 'text',
180 'waitlist_text' => 'text',
181 'approval_req_text' => 'text',
182 'template_title' => 'varchar(255)',
183 ),
184 );
185 }
186 return $result;
187 }
188
189 static function &indices() {
190 static $result = NULL;
191 if (!$result) {
192 $result = array(
193 'civicrm_contact' => array(
194 'index_sort_name' => array(
195 'name' => 'index_sort_name',
196 'field' => array(
197 'sort_name',
198 ),
199 ),
200 'index_first_name' => array(
201 'name' => 'index_first_name',
202 'field' => array(
203 'first_name',
204 ),
205 ),
206 'index_last_name' => array(
207 'name' => 'index_last_name',
208 'field' => array(
209 'last_name',
210 ),
211 ),
212 'index_household_name' => array(
213 'name' => 'index_household_name',
214 'field' => array(
215 'household_name',
216 ),
217 ),
218 'index_organization_name' => array(
219 'name' => 'index_organization_name',
220 'field' => array(
221 'organization_name',
222 ),
223 ),
224 ),
225 'civicrm_price_set' => array(
226 'UI_title' => array(
227 'name' => 'UI_title',
228 'field' => array(
229 'title',
230 ),
231 'unique' => 1,
232 ),
233 ),
234 'civicrm_custom_group' => array(
235 'UI_title_extends' => array(
236 'name' => 'UI_title_extends',
237 'field' => array(
238 'title',
239 'extends',
240 ),
241 'unique' => 1,
242 ),
243 ),
244 'civicrm_custom_field' => array(
245 'UI_label_custom_group_id' => array(
246 'name' => 'UI_label_custom_group_id',
247 'field' => array(
248 'label',
249 'custom_group_id',
250 ),
251 'unique' => 1,
252 ),
253 ),
254 'civicrm_address' => array(
255 'index_city' => array(
256 'name' => 'index_city',
257 'field' => array(
258 'city',
259 ),
260 ),
261 ),
262 );
263 }
264 return $result;
265 }
266
267 static function &tables() {
268 static $result = NULL;
269 if (!$result) {
270 $result = array_keys(self::columns());
271 }
272 return $result;
273 }
274}
275