From: Coleman Watts Date: Tue, 9 Apr 2013 22:30:45 +0000 (-0700) Subject: Fix event contribution_type FK error CRM-12312 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a1005585f25d2064dcd54a5857aac031ab03ecbe;p=civicrm-core.git Fix event contribution_type FK error CRM-12312 --- diff --git a/CRM/Upgrade/Incremental/sql/4.3.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.3.alpha1.mysql.tpl index d5c0b9d0e1..65dbcf0f16 100644 --- a/CRM/Upgrade/Incremental/sql/4.3.alpha1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.3.alpha1.mysql.tpl @@ -291,7 +291,10 @@ ALTER TABLE `civicrm_financial_item` ALTER TABLE `civicrm_entity_financial_trxn` DROP currency; --- CRM 9189 and CRM-8425 change fk's to financial_account.id in our branch that will need to be changed to an fk to financial_type.id +-- CRM-12312 +UPDATE civicrm_event SET contribution_type_id = NULL WHERE contribution_type_id = 0; + +-- CRM-9189 and CRM-8425 change fk's to financial_account.id in our branch that will need to be changed to an fk to financial_type.id ALTER TABLE `civicrm_pledge` DROP FOREIGN KEY FK_civicrm_pledge_contribution_type_id,