Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4369

Upgrade to v2.2 fails due to unused option group

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.3
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      While upgrading from v2.1.x to v2.2.1, it fails and giving DB error as :

      DB Error: already exists
      Database Error Code: Duplicate entry 'civicrm_event.amount.1' for key 2, 1062.

      This is because, unused option group of fee level/discounts present in civicrm_option_group which are not related to any event page.

      Steps to Replicate:-
      a) In v2.1.x create some event page with fee level/discount.
      b) Delete only event page and not fee level option groups.( might be manually)
      c) If we upgrade to v2.2.1, it fails.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              shailesh Shailesh Lende
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified