Fixed Error when upgrading after changing widget definition ID

Affected version
2.0.0

Jake B.

Well-known member
Example:

Old:
Definition ID: th_widget_1
Class: ThemeHouse\AddOn\Widget\One

New:
Definition ID: th_widget_one
Class: ThemeHouse\AddOn\Widget\One

Generates the following error when upgrading:

Code:
  [XF\Db\DuplicateKeyException]                                                                          
  MySQL query error [1062]: Duplicate entry 'ThemeHouse\AddOn\Widget\One' for key 'definition_class'
 

Chris D

XenForo developer
Staff member
Thanks, this is sorted for the next release, simply by way of removing the unique constraint.
 
Top