• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Error when upgrading after changing widget definition ID

Affected version
2.0.0

Jake B.

Well-known member
#1
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'