Fixed Error when upgrading after changing widget definition ID

Jake B.

Well-known member
Affected version
2.0.0
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'
 
Back
Top Bottom