Merge pull request #11642 from JKingsnorth/CRM-21739
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_3_1_alpha1.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
7e9e8871 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
8c9251b3 6 | Copyright CiviCRM LLC (c) 2004-2018 |
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 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
8c9251b3 31 * @copyright CiviCRM LLC (c) 2004-2018
6a488035
TO
32 * $Id$
33 *
34 */
35class CRM_Core_I18n_SchemaStructure_3_1_alpha1 {
a0ee3941
EM
36 /**
37 * @return array
38 */
3bdca100 39 public static function &columns() {
6a488035
TO
40 static $result = NULL;
41 if (!$result) {
42 $result = array(
43 'civicrm_option_group' => array(
44 'label' => 'varchar(255)',
45 'description' => 'varchar(255)',
46 ),
47 'civicrm_contact' => array(
48 'sort_name' => 'varchar(128)',
49 'display_name' => 'varchar(128)',
50 'first_name' => 'varchar(64)',
51 'middle_name' => 'varchar(64)',
52 'last_name' => 'varchar(64)',
53 'email_greeting_display' => 'varchar(255)',
54 'postal_greeting_display' => 'varchar(255)',
55 'addressee_display' => 'varchar(255)',
56 'household_name' => 'varchar(128)',
57 'organization_name' => 'varchar(128)',
58 ),
59 'civicrm_contact_type' => array(
60 'label' => 'varchar(64)',
61 'description' => 'text',
62 ),
63 'civicrm_mailing_component' => array(
64 'name' => 'varchar(64)',
65 'subject' => 'varchar(255)',
66 'body_html' => 'text',
67 'body_text' => 'text',
68 ),
69 'civicrm_mailing' => array(
70 'name' => 'varchar(128)',
71 'from_name' => 'varchar(128)',
72 'subject' => 'varchar(128)',
73 'body_text' => 'longtext',
74 'body_html' => 'longtext',
75 ),
76 'civicrm_premiums' => array(
77 'premiums_intro_title' => 'varchar(255)',
78 'premiums_intro_text' => 'text',
79 ),
80 'civicrm_product' => array(
81 'name' => 'varchar(255)',
82 'description' => 'text',
83 'options' => 'text',
84 ),
85 'civicrm_membership_type' => array(
86 'name' => 'varchar(128)',
87 'description' => 'varchar(255)',
88 ),
89 'civicrm_membership_status' => array(
90 'name' => 'varchar(128)',
91 ),
92 'civicrm_participant_status_type' => array(
93 'label' => 'varchar(255)',
94 ),
95 'civicrm_tell_friend' => array(
96 'title' => 'varchar(255)',
97 'intro' => 'text',
98 'suggested_message' => 'text',
99 'thankyou_title' => 'varchar(255)',
100 'thankyou_text' => 'text',
101 ),
102 'civicrm_price_set' => array(
103 'title' => 'varchar(255)',
104 'help_pre' => 'text',
105 'help_post' => 'text',
106 ),
107 'civicrm_custom_group' => array(
108 'title' => 'varchar(64)',
109 'help_pre' => 'text',
110 'help_post' => 'text',
111 ),
112 'civicrm_custom_field' => array(
113 'label' => 'varchar(255)',
114 'help_pre' => 'text',
115 'help_post' => 'text',
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 'label' => 'varchar(255)',
155 ),
156 'civicrm_address' => array(
157 'street_address' => 'varchar(96)',
158 'supplemental_address_1' => 'varchar(96)',
159 'supplemental_address_2' => 'varchar(96)',
160 'supplemental_address_3' => 'varchar(96)',
161 'city' => 'varchar(64)',
162 'name' => 'varchar(255)',
163 ),
164 'civicrm_event' => array(
165 'title' => 'varchar(255)',
166 'summary' => 'text',
167 'description' => 'text',
168 'registration_link_text' => 'varchar(255)',
169 'event_full_text' => 'text',
170 'fee_label' => 'varchar(255)',
171 'intro_text' => 'text',
172 'footer_text' => 'text',
173 'confirm_title' => 'varchar(255)',
174 'confirm_text' => 'text',
175 'confirm_footer_text' => 'text',
176 'confirm_email_text' => 'text',
177 'confirm_from_name' => 'varchar(255)',
178 'thankyou_title' => 'varchar(255)',
179 'thankyou_text' => 'text',
180 'thankyou_footer_text' => 'text',
181 'pay_later_text' => 'text',
182 'pay_later_receipt' => 'text',
183 'waitlist_text' => 'text',
184 'approval_req_text' => 'text',
185 'template_title' => 'varchar(255)',
186 ),
187 );
188 }
189 return $result;
190 }
191
a0ee3941
EM
192 /**
193 * @return array
194 */
00be9182 195 public static function &indices() {
6a488035
TO
196 static $result = NULL;
197 if (!$result) {
198 $result = array(
199 'civicrm_contact' => array(
200 'index_sort_name' => array(
201 'name' => 'index_sort_name',
202 'field' => array(
203 'sort_name',
204 ),
205 ),
206 'index_first_name' => array(
207 'name' => 'index_first_name',
208 'field' => array(
209 'first_name',
210 ),
211 ),
212 'index_last_name' => array(
213 'name' => 'index_last_name',
214 'field' => array(
215 'last_name',
216 ),
217 ),
218 'index_household_name' => array(
219 'name' => 'index_household_name',
220 'field' => array(
221 'household_name',
222 ),
223 ),
224 'index_organization_name' => array(
225 'name' => 'index_organization_name',
226 'field' => array(
227 'organization_name',
228 ),
229 ),
230 ),
231 'civicrm_price_set' => array(
232 'UI_title' => array(
233 'name' => 'UI_title',
234 'field' => array(
235 'title',
236 ),
237 'unique' => 1,
238 ),
239 ),
240 'civicrm_custom_group' => array(
241 'UI_title_extends' => array(
242 'name' => 'UI_title_extends',
243 'field' => array(
244 'title',
245 'extends',
246 ),
247 'unique' => 1,
248 ),
249 ),
250 'civicrm_custom_field' => array(
251 'UI_label_custom_group_id' => array(
252 'name' => 'UI_label_custom_group_id',
253 'field' => array(
254 'label',
255 'custom_group_id',
256 ),
257 'unique' => 1,
258 ),
259 ),
260 'civicrm_address' => array(
261 'index_city' => array(
262 'name' => 'index_city',
263 'field' => array(
264 'city',
265 ),
266 ),
267 ),
268 );
269 }
270 return $result;
271 }
272
a0ee3941
EM
273 /**
274 * @return array
275 */
00be9182 276 public static function &tables() {
6a488035
TO
277 static $result = NULL;
278 if (!$result) {
279 $result = array_keys(self::columns());
280 }
281 return $result;
282 }
96025800 283
6a488035 284}