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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • multi-site civicrm_add_domain.mysql fails on civicrm_payment_processor_type
Pages: [1]

Author Topic: multi-site civicrm_add_domain.mysql fails on civicrm_payment_processor_type  (Read 2590 times)

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
multi-site civicrm_add_domain.mysql fails on civicrm_payment_processor_type
August 30, 2007, 10:05:07 pm
The feature that allows multiple instances CiviCRM in one database using the domain attribute is broken for 1.8.

This is because the civicrm_add_domain.mysql query attempts to repeat values in 'civicrm_payment_processor_type.name', for each domain added, however this column has a unique constraint (  UNIQUE KEY `UI_name` (`name`),).

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: multi-site civicrm_add_domain.mysql fails on civicrm_payment_processor_type
August 31, 2007, 03:30:21 am
Thanks for catching this. I filed CRM-2245 and fixed this on the v1.9 branch.

For CiviCRM 1.8, the best solution is to drop the existing UNIQUE INDEX and create the new one (consisting of name and domain_id):

Code: [Select]
DROP INDEX UI_name ON civicrm_payment_processor_type;
CREATE UNIQUE INDEX UI_name_domain_id ON civicrm_payment_processor_type (name, domain_id);
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • multi-site civicrm_add_domain.mysql fails on civicrm_payment_processor_type

This forum was archived on 2017-11-26.