Merge pull request #4198 from sunilpawar/CRM-15332
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 3.4.alpha3.mysql.tpl
CommitLineData
6a488035
TO
1-- CRM-7743
2SELECT @option_group_id_languages := MAX(id) FROM civicrm_option_group WHERE name = 'languages';
3UPDATE civicrm_option_value SET name = 'ce_RU' WHERE value = 'ce' AND option_group_id = @option_group_id_languages;
4
5-- CRM-7750
6SELECT @option_group_id_report := MAX(id) FROM civicrm_option_group WHERE name = 'report_template';
7SELECT @weight := MAX(weight) FROM civicrm_option_value WHERE option_group_id = @option_group_id_report;
8SELECT @contributeCompId := MAX(id) FROM civicrm_component WHERE name = 'CiviContribute';
9
10INSERT INTO civicrm_option_value
10824d34 11 (option_group_id, {localize field='label'}label{/localize}, value, name, weight, {localize field='description'}description{/localize}, is_active, component_id)
6a488035
TO
12 VALUES
13 (@option_group_id_report, {localize}'Personal Campaign Page Report'{/localize}, 'contribute/pcp', 'CRM_Report_Form_Contribute_PCP', @weight := @weight + 1, {localize}'Shows Personal Campaign Page Report.'{/localize}, 1, @contributeCompId );
14
15-- CRM-7775
16ALTER TABLE `civicrm_activity`
17ADD `engagement_level` int(10) unsigned default NULL COMMENT 'Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.';
18
19
20{if $renameColumnVisibility}
21 ALTER TABLE `civicrm_mailing` CHANGE `visibilty` `visibility` ENUM( 'User and User Admin Only', 'Public Pages' ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT 'User and User Admin Only' COMMENT 'In what context(s) is the mailing contents visible (online viewing)';
22{/if}
23
24-- CRM-7453
10824d34 25 UPDATE `civicrm_navigation`
6a488035
TO
26 SET `url` = 'civicrm/activity/email/add&atype=3&action=add&reset=1&context=standalone' WHERE `name` = 'New Email';
27