Merge pull request #7228 from mollux/CRM-17582
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 4.7.beta1.mysql.tpl
CommitLineData
f2720c51 1{* file to handle db changes in 4.7.beta1 during upgrade *}
7a2916e4
CW
2
3SELECT @parent_id := id from `civicrm_navigation` where name = 'Administration Console' AND domain_id = {$domainID};
4INSERT INTO civicrm_navigation
5( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
6VALUES
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
9UPDATE civicrm_contact SET is_deceased = 0 WHERE is_deceased IS NULL;
10
11-- CRM-17503 PayPal Express processor type can support recurring payments
12UPDATE civicrm_payment_processor_type pp
13LEFT JOIN civicrm_payment_processor p ON p.payment_processor_type_id = pp.id
14SET pp.is_recur = 1, p.is_recur = 1
c50ec08e
CW
15WHERE pp.name='PayPal_Express';
16
b3114a81 17UPDATE civicrm_preferences_date SET description = '{ts escape="sql"}Used in search forms and for relationships.{/ts}'
c50ec08e 18WHERE name = 'searchDate';
7dbb67ae
DG
19
20--CRM-16761 Self service cancel or transfer for events
21ALTER 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?';
24ALTER 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
28INSERT INTO civicrm_participant_status_type(name, {localize field='label'}label{/localize}, class, is_reserved, is_active, is_counted, weight, visibility_id)
4f715c48 29VALUES ('Transferred', {localize}'{ts escape="sql"}Transferred{/ts}'{/localize}, 'Negative', 1, 1, 0, 16, 2);