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