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