CRM-16173 - 4.6.12.mysql.tpl - Register "System Settings => Connections" link
authorCiviCRM <info@civicrm.org>
Wed, 6 Jan 2016 01:06:19 +0000 (17:06 -0800)
committerCiviCRM <info@civicrm.org>
Wed, 6 Jan 2016 22:21:49 +0000 (14:21 -0800)
CRM/Upgrade/Incremental/sql/4.6.12.mysql.tpl

index 9897350edfa5637d0679e1225bf5a201d8799ef7..6ae76a7d9dea8b544623deaa7e5a5c478b2d3b4e 100644 (file)
@@ -1 +1,13 @@
 {* file to handle db changes in 4.6.12 during upgrade *}
+
+-- CRM-16173, CRM-16831
+SELECT @parent_id := id from `civicrm_navigation` where name = 'System Settings' AND domain_id = {$domainID};
+SELECT @add_weight_id := weight from `civicrm_navigation` where `name` = 'Manage Extensions' and `parent_id` = @parent_id;
+UPDATE `civicrm_navigation`
+SET `weight` = `weight`+1
+WHERE `parent_id` = @parent_id
+AND `weight` > @add_weight_id;
+INSERT INTO `civicrm_navigation`
+( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
+VALUES
+( {$domainID}, 'civicrm/a/#/cxn', '{ts escape="sql" skip="true"}Connections{/ts}', 'Connections', 'administer CiviCRM', '', @parent_id , '1', NULL, @add_weight_id + 1 );