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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column
Pages: [1]

Author Topic: Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column  (Read 1040 times)

magnolia61

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34 / Joomla 3.3.6
  • MySQL version: MySQL 5.5.40
  • PHP version: PHP 5.5.19
Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column
March 19, 2015, 04:01:28 am
When I try to upgrade my 4.5.8 database to 4.6beta4 the installer process stalls at:

[Error: Upgrade DB to 4.6.alpha7]
ALTER TABLE civicrm_mailing_abtest ADD COLUMN `created_id` int unsigned COMMENT 'FK to Contact ID', ADD COLUMN `created_date` datetime COMMENT 'When was this item created', ADD COLUMN `testing_criteria` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, ADD COLUMN `winner_criteria` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, ADD CONSTRAINT FK_civicrm_mailing_abtest_created_id FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL [nativecode=1060 ** Duplicate column name 'created_id']

Does anyone know if this point to an error in the installer? And how to proceed from here?


ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column
March 27, 2015, 09:04:37 pm
@magnolia61,

The 'civicrm_mailing_abtest' table gets created in the upgrade script for 4.6.alpha1 if it doesn't already exist. The 'created_id' column is added in 4.6.alpha7.

The only way I can imagine you would have that failure is that the 'civicrm_mailing_abtest' already exists in your database.

Was it a fresh install or did you resume after a failed install?

Ken

norris

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla
  • MySQL version: 5.5.41-37.0-log
  • PHP version: 5.4.24
Re: Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column
April 10, 2015, 09:48:18 pm
Just in case it helps anyone else: I ran into this problem due to a problem upgrading from 4.5.8 to 4.6.0 (I have CRM set to use a different database than my Joomla install, so I think I have to manually replace the com_civicrm-admin/civicrm.zip -> civicrm/templates/CRM/common/civicrm.settings.php.template with a version with the correct database - at least, I haven't found another way to have the install use the correct DB.)

Anyway, I messed it up and had a partial install that affected the database.  Then I ran into this error during the database upgrade.  To fix it, I had to drop my crm database, recreate it, restore from the 4.5.8 backup, and install the upgrade (getting my replacement of civicrm.settings.php.template right this time!)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Upgrade error 4.5.8. to 4.6beta4 - civicrm_mailing_abtest - Duplicate Column

This forum was archived on 2017-11-26.