Skip to content
Snippets Groups Projects
Commit 49ddb59d authored by Pradeep Nayak's avatar Pradeep Nayak
Browse files

--CRM-13446, fixed Upgrade code for fatal error if...

--CRM-13446, fixed Upgrade code for fatal error if civicrm_financial_account.contact_id is NOT NULL by default.

----------------------------------------
* CRM-13446: Add ON DELETE Options for constraints fails
  http://issues.civicrm.org/jira/browse/CRM-13446
parent 2eaac676
No related branches found
No related tags found
No related merge requests found
...@@ -1101,6 +1101,7 @@ AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (" . implode(',', $v ...@@ -1101,6 +1101,7 @@ AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (" . implode(',', $v
* @return bool TRUE for success * @return bool TRUE for success
*/ */
function task_4_3_x_checkConstraints(CRM_Queue_TaskContext $ctx) { function task_4_3_x_checkConstraints(CRM_Queue_TaskContext $ctx) {
CRM_Core_DAO::executeQuery('ALTER TABLE `civicrm_financial_account` CHANGE `contact_id` `contact_id` INT( 10 ) UNSIGNED NULL DEFAULT NULL');
$config = CRM_Core_Config::singleton(); $config = CRM_Core_Config::singleton();
$dbname = DB::parseDSN($config->dsn); $dbname = DB::parseDSN($config->dsn);
$constraintArray = array( $constraintArray = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment