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