Commit | Line | Data |
---|---|---|
f2720c51 | 1 | {* file to handle db changes in 4.7.beta1 during upgrade *} |
7a2916e4 CW |
2 | |
3 | SELECT @parent_id := id from `civicrm_navigation` where name = 'Administration Console' AND domain_id = {$domainID}; | |
4 | INSERT INTO civicrm_navigation | |
5 | ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) | |
6 | VALUES | |
c1c370a7 KB |
7 | ( {$domainID}, 'civicrm/a/#/status', '{ts escape="sql" skip="true"}System Status{/ts}', 'System Status', 'administer CiviCRM', '', @parent_id, '1', NULL, 0 ); |
8 | ||
0982ca95 DG |
9 | UPDATE civicrm_contact SET is_deceased = 0 WHERE is_deceased IS NULL; |
10 | ||
11 | -- CRM-17503 PayPal Express processor type can support recurring payments | |
12 | UPDATE civicrm_payment_processor_type pp | |
13 | LEFT JOIN civicrm_payment_processor p ON p.payment_processor_type_id = pp.id | |
14 | SET pp.is_recur = 1, p.is_recur = 1 | |
c50ec08e CW |
15 | WHERE pp.name='PayPal_Express'; |
16 | ||
b3114a81 | 17 | UPDATE civicrm_preferences_date SET description = '{ts escape="sql"}Used in search forms and for relationships.{/ts}' |
c50ec08e | 18 | WHERE name = 'searchDate'; |
7dbb67ae DG |
19 | |
20 | --CRM-16761 Self service cancel or transfer for events | |
21 | ALTER TABLE civicrm_event | |
22 | ADD COLUMN selfcancelxfer_time INT(10) unsigned DEFAULT 0 COMMENT 'Number of hours prior to event start date to allow self-service cancellation or transfer.', | |
23 | ADD COLUMN allow_selfcancelxfer TINYINT(4) DEFAULT '0' COMMENT 'Allow self service cancellation or transfer for event?'; | |
24 | ALTER TABLE civicrm_participant | |
25 | ADD COLUMN transferred_to_contact_id INT(10) unsigned DEFAULT NULL COMMENT 'Contact to which the event registration is transferred', | |
26 | ADD CONSTRAINT `FK_civicrm_participant_transferred_to_contact_id` FOREIGN KEY (`transferred_to_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL; | |
27 | ||
28 | INSERT INTO civicrm_participant_status_type(name, {localize field='label'}label{/localize}, class, is_reserved, is_active, is_counted, weight, visibility_id) | |
4f715c48 | 29 | VALUES ('Transferred', {localize}'{ts escape="sql"}Transferred{/ts}'{/localize}, 'Negative', 1, 1, 0, 16, 2); |