Merge pull request #19232 from eileenmcnaughton/friend
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 4.7.5.mysql.tpl
CommitLineData
88a562db 1{* file to handle db changes in 4.7.5 during upgrade *}
a0b8d522 2{include file='../CRM/Upgrade/4.7.5.msg_template/civicrm_msg_template.tpl'}
3
55206923 4-- Minor fix for CRM-16173, CRM-16831 - change labels, add separator, etc.
5SELECT @parent_id := id from `civicrm_navigation` where name = 'System Settings' AND domain_id = {$domainID};
6UPDATE `civicrm_navigation` SET `label` = 'Components' where `name` = 'Enable Components' and `parent_id` = @parent_id;
7
8UPDATE
9 `civicrm_navigation` AS nav1
10 JOIN `civicrm_navigation` AS nav2 ON
11 nav1.name = 'Connections'
12 AND nav2.name = 'Manage Extensions'
13 AND nav1.parent_id = @parent_id
14SET
15 nav1.weight = nav2.weight,
16 nav2.weight = nav1.weight,
17 nav2.has_separator = 1,
18 nav2.label = 'Extensions';
e14e412b 19
ac81c185 20-- CRM-18327 filter value missed on the contact deleted by merge activity --
e14e412b 21UPDATE civicrm_option_value ov
22LEFT JOIN civicrm_option_group og ON og.id = ov.option_group_id
23SET filter = 1
a73fd4ab 24WHERE ov.name = 'Contact Deleted by Merge' AND og.name = 'activity_type';
ac81c185 25
26-- CRM-18241 Change field length of civicrm_option_value.label from 255 to 512 --
69f39ece 27{if $multilingual}
28 {foreach from=$locales item=loc}
29 ALTER TABLE civicrm_option_value CHANGE label_{$loc} label_{$loc} varchar( 512 ) DEFAULT NULL ;
30 {/foreach}
31{else}
32 ALTER TABLE civicrm_option_value CHANGE label label varchar( 512 ) DEFAULT NULL ;
8b09d794 33{/if}