upgrade handling for CRM-18037
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 4 Mar 2016 08:40:57 +0000 (14:10 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 4 Mar 2016 08:40:57 +0000 (14:10 +0530)
CRM/Upgrade/Incremental/sql/4.7.4.mysql.tpl

index 3a5a2c7a94c08e9380c5829bd994a525531b3bbd..ee1875fd7841f02e9758cc55edf7f503748ebd12 100644 (file)
@@ -1,2 +1,5 @@
 {* file to handle db changes in 4.7.4 during upgrade *}
 {include file='../CRM/Upgrade/4.7.4.msg_template/civicrm_msg_template.tpl'}
+
+// CRM-18037 - update preferred mail format to set as default
+UPDATE `civicrm_contact` SET `preferred_mail_format` = 'Both' WHERE `preferred_mail_format` IS NULL;