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