Commit | Line | Data |
---|---|---|
2b0c6f6d C |
1 | {* file to handle db changes in 4.7.23 during upgrade *} |
2 | ||
3 | {include file='../CRM/Upgrade/4.7.23.msg_template/civicrm_msg_template.tpl'} | |
4 | ||
5 | -- CRM-20816: Add CiviCase settings | |
6 | ||
7 | SELECT @civicaseAdminId := id FROM civicrm_navigation WHERE name = 'CiviCase' AND domain_id = {$domainID}; | |
8 | ||
9 | INSERT INTO civicrm_navigation | |
10 | (domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight) | |
11 | VALUES | |
12 | ({$domainID}, 'civicrm/admin/setting/case?reset=1', '{ts escape="sql" skip="true"}CiviCase Settings{/ts}', 'CiviCase Settings', NULL, 'AND', @civicaseAdminId, '1', NULL, 1); | |
13 | ||
14 | -- CRM-20387 | |
15 | UPDATE `civicrm_contribution` SET `invoice_number` = `invoice_id` WHERE `invoice_id` LIKE CONCAT('%', `id`); | |
760ac501 CW |
16 | |
17 | UPDATE `civicrm_option_value` | |
18 | SET filter = 1 | |
19 | WHERE option_group_id = (SELECT id FROM civicrm_option_group WHERE name = 'activity_status') | |
20 | AND name IN ('Completed', 'Cancelled', 'Unreachable', 'Not Required', 'No-show'); |