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