From 5481f1d11d1f69353c9f5583c1998d95cac3ac62 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Wed, 29 Apr 2015 11:59:53 -0400 Subject: [PATCH] CRM-16176 - add SchemaStructure for upgrade --- CRM/Core/I18n/SchemaStructure_4_7_alpha1.php | 256 +++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 CRM/Core/I18n/SchemaStructure_4_7_alpha1.php diff --git a/CRM/Core/I18n/SchemaStructure_4_7_alpha1.php b/CRM/Core/I18n/SchemaStructure_4_7_alpha1.php new file mode 100644 index 0000000000..22aecca9b0 --- /dev/null +++ b/CRM/Core/I18n/SchemaStructure_4_7_alpha1.php @@ -0,0 +1,256 @@ + array( + 'display_name' => "varchar(64)", + ), + 'civicrm_option_group' => array( + 'title' => "varchar(255)", + 'description' => "varchar(255)", + ), + 'civicrm_contact_type' => array( + 'label' => "varchar(64)", + 'description' => "text", + ), + 'civicrm_batch' => array( + 'title' => "varchar(64)", + 'description' => "text", + ), + 'civicrm_premiums' => array( + 'premiums_intro_title' => "varchar(255)", + 'premiums_intro_text' => "text", + 'premiums_nothankyou_label' => "varchar(255)", + ), + 'civicrm_membership_status' => array( + 'label' => "varchar(128)", + ), + 'civicrm_survey' => array( + 'title' => "varchar(255)", + 'instructions' => "text", + 'thankyou_title' => "varchar(255)", + 'thankyou_text' => "text", + ), + 'civicrm_participant_status_type' => array( + 'label' => "varchar(255)", + ), + 'civicrm_case_type' => array( + 'title' => "varchar(64)", + 'description' => "varchar(255)", + ), + 'civicrm_tell_friend' => array( + 'title' => "varchar(255)", + 'intro' => "text", + 'suggested_message' => "text", + 'thankyou_title' => "varchar(255)", + 'thankyou_text' => "text", + ), + 'civicrm_custom_group' => array( + 'title' => "varchar(64)", + 'help_pre' => "text", + 'help_post' => "text", + ), + 'civicrm_custom_field' => array( + 'label' => "varchar(255)", + 'help_pre' => "text", + 'help_post' => "text", + ), + 'civicrm_option_value' => array( + 'label' => "varchar(255)", + 'description' => "text", + ), + 'civicrm_group' => array( + 'title' => "varchar(64)", + ), + 'civicrm_contribution_page' => array( + 'title' => "varchar(255)", + 'intro_text' => "text", + 'pay_later_text' => "text", + 'pay_later_receipt' => "text", + 'initial_amount_label' => "varchar(255)", + 'initial_amount_help_text' => "text", + 'thankyou_title' => "varchar(255)", + 'thankyou_text' => "text", + 'thankyou_footer' => "text", + 'for_organization' => "text", + 'receipt_from_name' => "varchar(255)", + 'receipt_text' => "text", + 'footer_text' => "text", + ), + 'civicrm_product' => array( + 'name' => "varchar(255)", + 'description' => "text", + 'options' => "text", + ), + 'civicrm_membership_type' => array( + 'name' => "varchar(128)", + 'description' => "varchar(255)", + ), + 'civicrm_membership_block' => array( + 'new_title' => "varchar(255)", + 'new_text' => "text", + 'renewal_title' => "varchar(255)", + 'renewal_text' => "text", + ), + 'civicrm_price_set' => array( + 'title' => "varchar(255)", + 'help_pre' => "text", + 'help_post' => "text", + ), + 'civicrm_dashboard' => array( + 'label' => "varchar(255)", + ), + 'civicrm_uf_group' => array( + 'title' => "varchar(64)", + 'help_pre' => "text", + 'help_post' => "text", + ), + 'civicrm_uf_field' => array( + 'help_post' => "text", + 'help_pre' => "text", + 'label' => "varchar(255)", + ), + 'civicrm_price_field' => array( + 'label' => "varchar(255)", + 'help_pre' => "text", + 'help_post' => "text", + ), + 'civicrm_price_field_value' => array( + 'label' => "varchar(255)", + 'description' => "text", + ), + 'civicrm_pcp_block' => array( + 'link_text' => "varchar(255)", + ), + 'civicrm_event' => array( + 'title' => "varchar(255)", + 'summary' => "text", + 'description' => "text", + 'registration_link_text' => "varchar(255)", + 'event_full_text' => "text", + 'fee_label' => "varchar(255)", + 'intro_text' => "text", + 'footer_text' => "text", + 'confirm_title' => "varchar(255)", + 'confirm_text' => "text", + 'confirm_footer_text' => "text", + 'confirm_email_text' => "text", + 'confirm_from_name' => "varchar(255)", + 'thankyou_title' => "varchar(255)", + 'thankyou_text' => "text", + 'thankyou_footer_text' => "text", + 'pay_later_text' => "text", + 'pay_later_receipt' => "text", + 'initial_amount_label' => "varchar(255)", + 'initial_amount_help_text' => "text", + 'waitlist_text' => "text", + 'approval_req_text' => "text", + 'template_title' => "varchar(255)", + ), + 'civicrm_relationship_type' => array( + 'label_a_b' => "varchar(64)", + 'label_b_a' => "varchar(64)", + 'description' => "varchar(255)", + ), + ); + } + return $result; + } + + /** + * Get indices. + * + * @return array + */ + public static function &indices() { + static $result = NULL; + if (!$result) { + $result = array( + 'civicrm_custom_group' => array( + 'UI_title_extends' => array( + 'name' => 'UI_title_extends', + 'field' => array( + 'title', + 'extends', + ), + 'unique' => 1, + ), + ), + 'civicrm_custom_field' => array( + 'UI_label_custom_group_id' => array( + 'name' => 'UI_label_custom_group_id', + 'field' => array( + 'label', + 'custom_group_id', + ), + 'unique' => 1, + ), + ), + 'civicrm_group' => array( + 'UI_title' => array( + 'name' => 'UI_title', + 'field' => array( + 'title', + ), + 'unique' => 1, + ), + ), + ); + } + return $result; + } + + /** + * Get tables. + * + * @return array + */ + public static function &tables() { + static $result = NULL; + if (!$result) { + $result = array_keys(self::columns()); + } + return $result; + } + +} -- 2.25.1