Merge pull request #11821 from michaelmcandrew/500-http-response-code
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_2_alpha1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2018 |
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-2018
32 * $Id$
33 *
34 */
35 class CRM_Core_I18n_SchemaStructure_4_2_alpha1 {
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_premiums' => array(
55 'premiums_intro_title' => "varchar(255)",
56 'premiums_intro_text' => "text",
57 ),
58 'civicrm_product' => array(
59 'name' => "varchar(255)",
60 'description' => "text",
61 'options' => "text",
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_price_set' => array(
81 'title' => "varchar(255)",
82 'help_pre' => "text",
83 'help_post' => "text",
84 ),
85 'civicrm_batch' => array(
86 'title' => "varchar(64)",
87 'description' => "text",
88 ),
89 'civicrm_custom_group' => array(
90 'title' => "varchar(64)",
91 'help_pre' => "text",
92 'help_post' => "text",
93 ),
94 'civicrm_custom_field' => array(
95 'label' => "varchar(255)",
96 'help_pre' => "text",
97 'help_post' => "text",
98 ),
99 'civicrm_dashboard' => array(
100 'label' => "varchar(255)",
101 ),
102 'civicrm_option_value' => array(
103 'label' => "varchar(255)",
104 'description' => "text",
105 ),
106 'civicrm_group' => array(
107 'title' => "varchar(64)",
108 ),
109 'civicrm_contribution_page' => array(
110 'title' => "varchar(255)",
111 'intro_text' => "text",
112 'pay_later_text' => "text",
113 'pay_later_receipt' => "text",
114 'thankyou_title' => "varchar(255)",
115 'thankyou_text' => "text",
116 'thankyou_footer' => "text",
117 'for_organization' => "text",
118 'receipt_from_name' => "varchar(255)",
119 'receipt_text' => "text",
120 'footer_text' => "text",
121 'honor_block_title' => "varchar(255)",
122 'honor_block_text' => "text",
123 ),
124 'civicrm_price_field' => array(
125 'label' => "varchar(255)",
126 'help_pre' => "text",
127 'help_post' => "text",
128 ),
129 'civicrm_uf_group' => array(
130 'title' => "varchar(64)",
131 'help_pre' => "text",
132 'help_post' => "text",
133 ),
134 'civicrm_uf_field' => array(
135 'help_post' => "text",
136 'help_pre' => "text",
137 'label' => "varchar(255)",
138 ),
139 'civicrm_membership_type' => array(
140 'name' => "varchar(128)",
141 'description' => "varchar(255)",
142 ),
143 'civicrm_membership_block' => array(
144 'new_title' => "varchar(255)",
145 'new_text' => "text",
146 'renewal_title' => "varchar(255)",
147 'renewal_text' => "text",
148 ),
149 'civicrm_price_field_value' => array(
150 'label' => "varchar(255)",
151 'description' => "text",
152 ),
153 'civicrm_pcp_block' => array(
154 'link_text' => "varchar(255)",
155 ),
156 'civicrm_event' => array(
157 'title' => "varchar(255)",
158 'summary' => "text",
159 'description' => "text",
160 'registration_link_text' => "varchar(255)",
161 'event_full_text' => "text",
162 'fee_label' => "varchar(255)",
163 'intro_text' => "text",
164 'footer_text' => "text",
165 'confirm_title' => "varchar(255)",
166 'confirm_text' => "text",
167 'confirm_footer_text' => "text",
168 'confirm_email_text' => "text",
169 'confirm_from_name' => "varchar(255)",
170 'thankyou_title' => "varchar(255)",
171 'thankyou_text' => "text",
172 'thankyou_footer_text' => "text",
173 'pay_later_text' => "text",
174 'pay_later_receipt' => "text",
175 'waitlist_text' => "text",
176 'approval_req_text' => "text",
177 'template_title' => "varchar(255)",
178 ),
179 );
180 }
181 return $result;
182 }
183
184 /**
185 * @return array
186 */
187 public static function &indices() {
188 static $result = NULL;
189 if (!$result) {
190 $result = array(
191 'civicrm_custom_group' => array(
192 'UI_title_extends' => array(
193 'name' => 'UI_title_extends',
194 'field' => array(
195 'title',
196 'extends',
197 ),
198 'unique' => 1,
199 ),
200 ),
201 'civicrm_custom_field' => array(
202 'UI_label_custom_group_id' => array(
203 'name' => 'UI_label_custom_group_id',
204 'field' => array(
205 'label',
206 'custom_group_id',
207 ),
208 'unique' => 1,
209 ),
210 ),
211 'civicrm_group' => array(
212 'UI_title' => array(
213 'name' => 'UI_title',
214 'field' => array(
215 'title',
216 ),
217 'unique' => 1,
218 ),
219 ),
220 );
221 }
222 return $result;
223 }
224
225 /**
226 * @return array
227 */
228 public static function &tables() {
229 static $result = NULL;
230 if (!$result) {
231 $result = array_keys(self::columns());
232 }
233 return $result;
234 }
235
236 }