CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Changing the contribution type on 9K records
Pages: [1]

Author Topic: Changing the contribution type on 9K records  (Read 462 times)

jimmyjam

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 4
Changing the contribution type on 9K records
September 30, 2010, 07:15:28 pm
Hi,

I'd like to run a SQL query in phpMyAdmin to mass update all of the contribution records in my DB from contribution type Donation to Member Dues. I tried running this:

Code: [Select]
update civicrm_contribution set contribution_type_id = 3
...but received this error message:

Quote
#1452 - Cannot add or update a child row: a foreign key constraint fails (`jimmyjam_civi1/civicrm_contribution`, CONSTRAINT `FK_civicrm_contribution_contribution_type_id` FOREIGN KEY (`contribution_type_id`) REFERENCES `civicrm_contribution_type` (`id`) ON DELETE SE)


Thanks,
James

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Changing the contribution type on 9K records

This forum was archived on 2017-11-26.