Merge in 5.16
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_3_1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
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-2019
32 * $Id$
33 *
34 */
35 class CRM_Core_I18n_SchemaStructure_4_3_1 {
36
37 /**
38 * @return array
39 */
40 public static function &columns() {
41 static $result = NULL;
42 if (!$result) {
43 $result = [
44 'civicrm_location_type' => [
45 'display_name' => "varchar(64)",
46 ],
47 'civicrm_option_group' => [
48 'title' => "varchar(255)",
49 'description' => "varchar(255)",
50 ],
51 'civicrm_contact_type' => [
52 'label' => "varchar(64)",
53 'description' => "text",
54 ],
55 'civicrm_batch' => [
56 'title' => "varchar(64)",
57 'description' => "text",
58 ],
59 'civicrm_premiums' => [
60 'premiums_intro_title' => "varchar(255)",
61 'premiums_intro_text' => "text",
62 'premiums_nothankyou_label' => "varchar(255)",
63 ],
64 'civicrm_membership_status' => [
65 'label' => "varchar(128)",
66 ],
67 'civicrm_survey' => [
68 'thankyou_title' => "varchar(255)",
69 'thankyou_text' => "text",
70 ],
71 'civicrm_participant_status_type' => [
72 'label' => "varchar(255)",
73 ],
74 'civicrm_tell_friend' => [
75 'title' => "varchar(255)",
76 'intro' => "text",
77 'suggested_message' => "text",
78 'thankyou_title' => "varchar(255)",
79 'thankyou_text' => "text",
80 ],
81 'civicrm_custom_group' => [
82 'title' => "varchar(64)",
83 'help_pre' => "text",
84 'help_post' => "text",
85 ],
86 'civicrm_custom_field' => [
87 'label' => "varchar(255)",
88 'help_pre' => "text",
89 'help_post' => "text",
90 ],
91 'civicrm_option_value' => [
92 'label' => "varchar(255)",
93 'description' => "text",
94 ],
95 'civicrm_group' => [
96 'title' => "varchar(64)",
97 ],
98 'civicrm_contribution_page' => [
99 'title' => "varchar(255)",
100 'intro_text' => "text",
101 'pay_later_text' => "text",
102 'pay_later_receipt' => "text",
103 'initial_amount_label' => "varchar(255)",
104 'initial_amount_help_text' => "text",
105 'thankyou_title' => "varchar(255)",
106 'thankyou_text' => "text",
107 'thankyou_footer' => "text",
108 'for_organization' => "text",
109 'receipt_from_name' => "varchar(255)",
110 'receipt_text' => "text",
111 'footer_text' => "text",
112 'honor_block_title' => "varchar(255)",
113 'honor_block_text' => "text",
114 ],
115 'civicrm_product' => [
116 'name' => "varchar(255)",
117 'description' => "text",
118 'options' => "text",
119 ],
120 'civicrm_membership_type' => [
121 'name' => "varchar(128)",
122 'description' => "varchar(255)",
123 ],
124 'civicrm_membership_block' => [
125 'new_title' => "varchar(255)",
126 'new_text' => "text",
127 'renewal_title' => "varchar(255)",
128 'renewal_text' => "text",
129 ],
130 'civicrm_price_set' => [
131 'title' => "varchar(255)",
132 'help_pre' => "text",
133 'help_post' => "text",
134 ],
135 'civicrm_dashboard' => [
136 'label' => "varchar(255)",
137 ],
138 'civicrm_uf_group' => [
139 'title' => "varchar(64)",
140 'help_pre' => "text",
141 'help_post' => "text",
142 ],
143 'civicrm_uf_field' => [
144 'help_post' => "text",
145 'help_pre' => "text",
146 'label' => "varchar(255)",
147 ],
148 'civicrm_price_field' => [
149 'label' => "varchar(255)",
150 'help_pre' => "text",
151 'help_post' => "text",
152 ],
153 'civicrm_price_field_value' => [
154 'label' => "varchar(255)",
155 'description' => "text",
156 ],
157 'civicrm_pcp_block' => [
158 'link_text' => "varchar(255)",
159 ],
160 'civicrm_event' => [
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 'initial_amount_label' => "varchar(255)",
180 'initial_amount_help_text' => "text",
181 'waitlist_text' => "text",
182 'approval_req_text' => "text",
183 'template_title' => "varchar(255)",
184 ],
185 ];
186 }
187 return $result;
188 }
189
190 /**
191 * @return array
192 */
193 public static function &indices() {
194 static $result = NULL;
195 if (!$result) {
196 $result = [
197 'civicrm_custom_group' => [
198 'UI_title_extends' => [
199 'name' => 'UI_title_extends',
200 'field' => [
201 'title',
202 'extends',
203 ],
204 'unique' => 1,
205 ],
206 ],
207 'civicrm_custom_field' => [
208 'UI_label_custom_group_id' => [
209 'name' => 'UI_label_custom_group_id',
210 'field' => [
211 'label',
212 'custom_group_id',
213 ],
214 'unique' => 1,
215 ],
216 ],
217 'civicrm_group' => [
218 'UI_title' => [
219 'name' => 'UI_title',
220 'field' => [
221 'title',
222 ],
223 'unique' => 1,
224 ],
225 ],
226 ];
227 }
228 return $result;
229 }
230
231 /**
232 * @return array
233 */
234 public static function &tables() {
235 static $result = NULL;
236 if (!$result) {
237 $result = array_keys(self::columns());
238 }
239 return $result;
240 }
241
242 }