Merge pull request #15800 from eileenmcnaughton/anet_valid
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_2_alpha1.php
CommitLineData
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
TO
16 * $Id$
17 *
18 */
d3e86119 19class CRM_Core_I18n_SchemaStructure_4_2_alpha1 {
518fa0ee 20
a0ee3941
EM
21 /**
22 * @return array
23 */
d3e86119 24 public static function &columns() {
e60f24eb 25 static $result = NULL;
6a488035 26 if (!$result) {
be2fb01f
CW
27 $result = [
28 'civicrm_location_type' => [
353ffa53 29 'display_name' => "varchar(64)",
be2fb01f
CW
30 ],
31 'civicrm_option_group' => [
353ffa53
TO
32 'title' => "varchar(255)",
33 'description' => "varchar(255)",
be2fb01f
CW
34 ],
35 'civicrm_contact_type' => [
353ffa53
TO
36 'label' => "varchar(64)",
37 'description' => "text",
be2fb01f
CW
38 ],
39 'civicrm_premiums' => [
6a488035
TO
40 'premiums_intro_title' => "varchar(255)",
41 'premiums_intro_text' => "text",
be2fb01f
CW
42 ],
43 'civicrm_product' => [
6a488035
TO
44 'name' => "varchar(255)",
45 'description' => "text",
46 'options' => "text",
be2fb01f
CW
47 ],
48 'civicrm_membership_status' => [
6a488035 49 'label' => "varchar(128)",
be2fb01f
CW
50 ],
51 'civicrm_survey' => [
6a488035
TO
52 'thankyou_title' => "varchar(255)",
53 'thankyou_text' => "text",
be2fb01f
CW
54 ],
55 'civicrm_participant_status_type' => [
353ffa53 56 'label' => "varchar(255)",
be2fb01f
CW
57 ],
58 'civicrm_tell_friend' => [
6a488035
TO
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_price_set' => [
6a488035
TO
66 'title' => "varchar(255)",
67 'help_pre' => "text",
68 'help_post' => "text",
be2fb01f
CW
69 ],
70 'civicrm_batch' => [
6a488035
TO
71 'title' => "varchar(64)",
72 'description' => "text",
be2fb01f
CW
73 ],
74 'civicrm_custom_group' => [
6a488035
TO
75 'title' => "varchar(64)",
76 'help_pre' => "text",
77 'help_post' => "text",
be2fb01f
CW
78 ],
79 'civicrm_custom_field' => [
6a488035
TO
80 'label' => "varchar(255)",
81 'help_pre' => "text",
82 'help_post' => "text",
be2fb01f
CW
83 ],
84 'civicrm_dashboard' => [
6a488035 85 'label' => "varchar(255)",
be2fb01f
CW
86 ],
87 'civicrm_option_value' => [
353ffa53
TO
88 'label' => "varchar(255)",
89 'description' => "text",
be2fb01f
CW
90 ],
91 'civicrm_group' => [
6a488035 92 'title' => "varchar(64)",
be2fb01f
CW
93 ],
94 'civicrm_contribution_page' => [
6a488035
TO
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",
be2fb01f
CW
108 ],
109 'civicrm_price_field' => [
6a488035
TO
110 'label' => "varchar(255)",
111 'help_pre' => "text",
112 'help_post' => "text",
be2fb01f
CW
113 ],
114 'civicrm_uf_group' => [
6a488035
TO
115 'title' => "varchar(64)",
116 'help_pre' => "text",
117 'help_post' => "text",
be2fb01f
CW
118 ],
119 'civicrm_uf_field' => [
6a488035
TO
120 'help_post' => "text",
121 'help_pre' => "text",
122 'label' => "varchar(255)",
be2fb01f
CW
123 ],
124 'civicrm_membership_type' => [
6a488035
TO
125 'name' => "varchar(128)",
126 'description' => "varchar(255)",
be2fb01f
CW
127 ],
128 'civicrm_membership_block' => [
6a488035
TO
129 'new_title' => "varchar(255)",
130 'new_text' => "text",
131 'renewal_title' => "varchar(255)",
132 'renewal_text' => "text",
be2fb01f
CW
133 ],
134 'civicrm_price_field_value' => [
6a488035
TO
135 'label' => "varchar(255)",
136 'description' => "text",
be2fb01f
CW
137 ],
138 'civicrm_pcp_block' => [
6a488035 139 'link_text' => "varchar(255)",
be2fb01f
CW
140 ],
141 'civicrm_event' => [
6a488035
TO
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)",
be2fb01f
CW
163 ],
164 ];
6a488035 165 }
353ffa53
TO
166 return $result;
167 }
a0ee3941
EM
168
169 /**
170 * @return array
171 */
6ea503d4 172 public static function &indices() {
e60f24eb 173 static $result = NULL;
6a488035 174 if (!$result) {
be2fb01f
CW
175 $result = [
176 'civicrm_custom_group' => [
177 'UI_title_extends' => [
6a488035 178 'name' => 'UI_title_extends',
be2fb01f 179 'field' => [
6a488035
TO
180 'title',
181 'extends',
be2fb01f 182 ],
6a488035 183 'unique' => 1,
be2fb01f
CW
184 ],
185 ],
186 'civicrm_custom_field' => [
187 'UI_label_custom_group_id' => [
6a488035 188 'name' => 'UI_label_custom_group_id',
be2fb01f 189 'field' => [
6a488035
TO
190 'label',
191 'custom_group_id',
be2fb01f 192 ],
6a488035 193 'unique' => 1,
be2fb01f
CW
194 ],
195 ],
196 'civicrm_group' => [
197 'UI_title' => [
6a488035 198 'name' => 'UI_title',
be2fb01f 199 'field' => [
6a488035 200 'title',
be2fb01f 201 ],
6a488035 202 'unique' => 1,
be2fb01f
CW
203 ],
204 ],
205 ];
6a488035
TO
206 }
207 return $result;
208 }
a0ee3941
EM
209
210 /**
211 * @return array
212 */
6ea503d4 213 public static function &tables() {
e60f24eb 214 static $result = NULL;
6a488035
TO
215 if (!$result) {
216 $result = array_keys(self::columns());
217 }
218 return $result;
219 }
96025800 220
6a488035 221}