Merge pull request #19435 from civicrm/5.34
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 4.6.12.mysql.tpl
CommitLineData
e4c1b25e
C
1{* file to handle db changes in 4.6.12 during upgrade *}
2
3-- CRM-16173, CRM-16831
4SELECT @parent_id := id from `civicrm_navigation` where name = 'System Settings' AND domain_id = {$domainID};
5SELECT @add_weight_id := weight from `civicrm_navigation` where `name` = 'Manage Extensions' and `parent_id` = @parent_id;
6UPDATE `civicrm_navigation`
7SET `weight` = `weight`+1
8WHERE `parent_id` = @parent_id
9AND `weight` > @add_weight_id;
10INSERT INTO `civicrm_navigation`
11( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
12VALUES
13( {$domainID}, 'civicrm/a/#/cxn', '{ts escape="sql" skip="true"}Connections{/ts}', 'Connections', 'administer CiviCRM', '', @parent_id , '1', NULL, @add_weight_id + 1 );