Merge pull request #15986 from civicrm/5.20
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_2_alpha1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 * $Id$
17 *
18 */
19 class CRM_Core_I18n_SchemaStructure_4_2_alpha1 {
20
21 /**
22 * @return array
23 */
24 public static function &columns() {
25 static $result = NULL;
26 if (!$result) {
27 $result = [
28 'civicrm_location_type' => [
29 'display_name' => "varchar(64)",
30 ],
31 'civicrm_option_group' => [
32 'title' => "varchar(255)",
33 'description' => "varchar(255)",
34 ],
35 'civicrm_contact_type' => [
36 'label' => "varchar(64)",
37 'description' => "text",
38 ],
39 'civicrm_premiums' => [
40 'premiums_intro_title' => "varchar(255)",
41 'premiums_intro_text' => "text",
42 ],
43 'civicrm_product' => [
44 'name' => "varchar(255)",
45 'description' => "text",
46 'options' => "text",
47 ],
48 'civicrm_membership_status' => [
49 'label' => "varchar(128)",
50 ],
51 'civicrm_survey' => [
52 'thankyou_title' => "varchar(255)",
53 'thankyou_text' => "text",
54 ],
55 'civicrm_participant_status_type' => [
56 'label' => "varchar(255)",
57 ],
58 'civicrm_tell_friend' => [
59 'title' => "varchar(255)",
60 'intro' => "text",
61 'suggested_message' => "text",
62 'thankyou_title' => "varchar(255)",
63 'thankyou_text' => "text",
64 ],
65 'civicrm_price_set' => [
66 'title' => "varchar(255)",
67 'help_pre' => "text",
68 'help_post' => "text",
69 ],
70 'civicrm_batch' => [
71 'title' => "varchar(64)",
72 'description' => "text",
73 ],
74 'civicrm_custom_group' => [
75 'title' => "varchar(64)",
76 'help_pre' => "text",
77 'help_post' => "text",
78 ],
79 'civicrm_custom_field' => [
80 'label' => "varchar(255)",
81 'help_pre' => "text",
82 'help_post' => "text",
83 ],
84 'civicrm_dashboard' => [
85 'label' => "varchar(255)",
86 ],
87 'civicrm_option_value' => [
88 'label' => "varchar(255)",
89 'description' => "text",
90 ],
91 'civicrm_group' => [
92 'title' => "varchar(64)",
93 ],
94 'civicrm_contribution_page' => [
95 'title' => "varchar(255)",
96 'intro_text' => "text",
97 'pay_later_text' => "text",
98 'pay_later_receipt' => "text",
99 'thankyou_title' => "varchar(255)",
100 'thankyou_text' => "text",
101 'thankyou_footer' => "text",
102 'for_organization' => "text",
103 'receipt_from_name' => "varchar(255)",
104 'receipt_text' => "text",
105 'footer_text' => "text",
106 'honor_block_title' => "varchar(255)",
107 'honor_block_text' => "text",
108 ],
109 'civicrm_price_field' => [
110 'label' => "varchar(255)",
111 'help_pre' => "text",
112 'help_post' => "text",
113 ],
114 'civicrm_uf_group' => [
115 'title' => "varchar(64)",
116 'help_pre' => "text",
117 'help_post' => "text",
118 ],
119 'civicrm_uf_field' => [
120 'help_post' => "text",
121 'help_pre' => "text",
122 'label' => "varchar(255)",
123 ],
124 'civicrm_membership_type' => [
125 'name' => "varchar(128)",
126 'description' => "varchar(255)",
127 ],
128 'civicrm_membership_block' => [
129 'new_title' => "varchar(255)",
130 'new_text' => "text",
131 'renewal_title' => "varchar(255)",
132 'renewal_text' => "text",
133 ],
134 'civicrm_price_field_value' => [
135 'label' => "varchar(255)",
136 'description' => "text",
137 ],
138 'civicrm_pcp_block' => [
139 'link_text' => "varchar(255)",
140 ],
141 'civicrm_event' => [
142 'title' => "varchar(255)",
143 'summary' => "text",
144 'description' => "text",
145 'registration_link_text' => "varchar(255)",
146 'event_full_text' => "text",
147 'fee_label' => "varchar(255)",
148 'intro_text' => "text",
149 'footer_text' => "text",
150 'confirm_title' => "varchar(255)",
151 'confirm_text' => "text",
152 'confirm_footer_text' => "text",
153 'confirm_email_text' => "text",
154 'confirm_from_name' => "varchar(255)",
155 'thankyou_title' => "varchar(255)",
156 'thankyou_text' => "text",
157 'thankyou_footer_text' => "text",
158 'pay_later_text' => "text",
159 'pay_later_receipt' => "text",
160 'waitlist_text' => "text",
161 'approval_req_text' => "text",
162 'template_title' => "varchar(255)",
163 ],
164 ];
165 }
166 return $result;
167 }
168
169 /**
170 * @return array
171 */
172 public static function &indices() {
173 static $result = NULL;
174 if (!$result) {
175 $result = [
176 'civicrm_custom_group' => [
177 'UI_title_extends' => [
178 'name' => 'UI_title_extends',
179 'field' => [
180 'title',
181 'extends',
182 ],
183 'unique' => 1,
184 ],
185 ],
186 'civicrm_custom_field' => [
187 'UI_label_custom_group_id' => [
188 'name' => 'UI_label_custom_group_id',
189 'field' => [
190 'label',
191 'custom_group_id',
192 ],
193 'unique' => 1,
194 ],
195 ],
196 'civicrm_group' => [
197 'UI_title' => [
198 'name' => 'UI_title',
199 'field' => [
200 'title',
201 ],
202 'unique' => 1,
203 ],
204 ],
205 ];
206 }
207 return $result;
208 }
209
210 /**
211 * @return array
212 */
213 public static function &tables() {
214 static $result = NULL;
215 if (!$result) {
216 $result = array_keys(self::columns());
217 }
218 return $result;
219 }
220
221 }