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.