Upgrade script for CRM-17552
authorJon goldberg <jon@palantetech.coop>
Thu, 14 Jan 2016 05:09:21 +0000 (00:09 -0500)
committerJon goldberg <jon@palantetech.coop>
Thu, 14 Jan 2016 05:09:21 +0000 (00:09 -0500)
CRM/Upgrade/Incremental/sql/4.7.beta8.mysql.tpl [new file with mode: 0644]

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 (file)
index 0000000..2a9397c
--- /dev/null
@@ -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;