From: Jon goldberg Date: Thu, 14 Jan 2016 05:09:21 +0000 (-0500) Subject: Upgrade script for CRM-17552 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d9883c8267f5953418278b5bfcf127e1a814fa8c;p=civicrm-core.git Upgrade script for CRM-17552 --- diff --git a/CRM/Upgrade/Incremental/sql/4.7.beta8.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.beta8.mysql.tpl new file mode 100644 index 0000000000..2a9397cc1a --- /dev/null +++ b/CRM/Upgrade/Incremental/sql/4.7.beta8.mysql.tpl @@ -0,0 +1,4 @@ +{* file to handle db changes in 4.7.beta8 during upgrade *} + +-- CRM-17552 +UPDATE civicrm_membership_block cmb JOIN civicrm_price_set_entity cpse ON cmb.entity_table = cpse.entity_table AND cmb.entity_id = cpse.entity_id JOIN civicrm_price_set cps ON cpse.price_set_id = cps.id SET cmb.is_required = 1 WHERE cmb.entity_table = 'civicrm_contribution_page' AND cps.is_quick_config = 0;